Skip to content

Create Static Entities

Key Lesson: Static Entities provide consistent reference values that can be reused by Entities and Screens throughout an application.

Start building the minimum data model with two static entities: Currency and CostCenter. Both provide reusable reference data for the Purchasing application, so currencies and cost centers are selected from predefined entries rather than entered as free text.

Each Static Entity entry has three parts:

  • Identifier: The code or object identifier used to reference the data in expressions, for example, This.Currency.Usd.
  • ID: The identifier used to store and reference the data, for example, usd.
  • Label: The value displayed to application users, for example, USD.

After you enter the Identifier, ID and Label auto-populate. You only need to change them if you want different values. The tables below show the values to use for each entry.

Currency provides the predefined list of currencies that can be assigned to purchase request items later in the tutorial.

Create new Static Entity
  1. Go to Design.
  2. Under Object Types, select StaticEntity.
  3. Select + to create a new Static Entity.
  4. Enter Currency, then select OK.
Currency Static Entity Editor
  1. When the Currency editor opens, leave the GENERAL settings at their default values.
  2. Under STATIC ENTRIES, click on the + Add entry button.
  3. Add the following entries:
IdentifierIDLabel
UsdusdUSD
EureurEUR
ChfchfCHF
  1. Save and close the editor.

  1. Go to Design.
  2. Under Object Types, select StaticEntity.
  3. Select + to create a new Static Entity.
  4. Enter CostCenter, then select OK.
  5. When the CostCenter editor opens, leave the GENERAL settings at their default values.
  6. Under STATIC ENTRIES, click on the + Add entry button.
  7. Add the following entries:
IdentifierIDLabel
MarketingmarketingMarketing
OperationsoperationsOperations
FinancefinanceFinance
ITitIT
  1. Save and close the editor.

After you save the Static Entities, the application name should briefly turn blue while Lowgile builds the changes, then green again when the build completes successfully.