Skip to main content

Building the "Order Management" Training App : Adding objects

Prerequisite : All of the steps in Getting started are completed

Create the Product Business object

Product definition

Follow the steps in Getting started : Create object to create the Product Business object with the following properties :

  • Code : TrnProduct
  • Table : trn_product
  • Module : Training
  • Prefix : prd

Product fields

Follow the steps in Getting started : Create field to add the following fields to the Product Business object :

LabelType Logical namePhysical nameFunctional KeyRequired
ReferenceShort texttrnPrdReferencetrn_prd_referenceyesyes
PriceDecimal (double)trnPrdPricetrn_prd_pricenoyes
StockIntegertrnPrdStocktrn_prd_stocknoyes
NameShort texttrnPrdNametrn_prd_namenono
DescriptionLong texttrnPrdDescriptiontrn_prd_descriptionnono
PhotoImagetrnPrdPhototrn_prd_photonono

The object's functional key is highlighted in red

Create the Client Business object

Client definition

Follow the steps in Getting started : Create object to create the Client Business object with the following properties :

  • Code : TrnClient
  • Table : trn_client
  • Module : Training
  • Prefix : cli

Client fields

Follow the steps in Getting started : Create field to add the following fields to the Client Business object :

LabelType Logical namePhysical nameFunctional KeyRequired
First NameShort texttrnCliFirstNametrn_cli_first_nameyesyes
Last NameShort texttrnCliLastNametrn_cli_last_nameyesyes
EmailEmailtrnCliEmailtrn_cli_emailnono
TelephonePhone numbertrnCliTelephonetrn_cli_telephonenono
AddressLong texttrnCliAddresstrn_cli_addressnono

Create the Order Business object

Order definition

Follow the steps in Getting started : Create object to create the Order Business object with the following properties :

  • Code : TrnOrder
  • Table : trn_order
  • Module : Training
  • Prefix : ord

Order fields

Follow the steps in Getting started : Create field to add the following fields to the Order Business object :

LabelType Logical namePhysical nameFunctional KeyRequired
NumberIntegertrnOrdNumbertrn_ord_numberyesyes
QuantityShort texttrnOrdQuantitytrn_ord_quantitynoyes
DateDatetrnOrdDatetrn_ord_datenono

Complete the Supplier Business object

Supplier fields

Follow the steps in Getting started : Create field to add the following fields to the Supplier Business object :

LabelType Logical namePhysical nameFunctional KeyRequired
NameShort texttrnSupNametrn_sup_namenono
TelephonePhone numbertrnSupTelephonetrn_sup_telephonenono
LogoImagetrnSupLogotrn_sup_logonono
WebsiteURLtrnSupWebsitetrn_sup_websitenono