- Getting Started
- Before You Begin
- How To
- Notifications
- Using VB Expressions
- Designing your App
- Events and Rules
- Rule: If-Then-Else
- Rule: Open a Page
- Rule: Open URL
- Rule: Close Pop-Over/Bottom Sheet
- Rule: Show Message
- Rule: Show/Hide Spinner
- Rule: Set Value
- Rule: Start Process
- Rule: Reset Values
- Rule: Upload File to Storage Bucket
- Rule: Download File From Storage Bucket
- Rule: Create Entity Record
- Rule: Update Entity Record
- Rule: Delete Entity Record
- Rule: Add to Queue
- Rule: Trigger workflow
- Leveraging RPA in your App
- Leveraging Entities in Your App
- Referencing an Entity in Your App
- Replacing an Entity
- Using Choice Set
- Displaying the value of an entity field in a label
- Using Apps With Data Service
- Leveraging Queues in Your App
- Application Lifecycle Management (ALM)
- Basic Troubleshooting Guide

Apps User Guide
Displaying the value of an entity field in a label
linkTo display values of fields from an entity within labels or other display controls in your app using VB expressions, follow these steps:
- Go to the app where you want to add this feature.
- Click Add any from the dropdown arrow next to Add control. Select Entity.Note: If you already have an entity added to your app, you can skip this step.
- Create a new AppVariable and assign the entity to it.
-
For holding a list of entity records, add an app variable of the type ListSource, then select your entity using the dropdown menu.
-
For retrieving a single entity record, add an app variable of the type <Entity>, where <Entity> is the name of your entity.
-
- In the MainPage, go to the Events section in the property panel. Add a Loaded rule.
- Add a Set Value rule.
- In the Item To Set field, select your AppVariable using the lookup panel.
- In the Value field, use the query builder to construct your query.Note:
You can find more information on how to construct a query in the Query builder page.
If you are assigning a value to an AppVariable of the type <Entity>, use the query builder to generate the expression. Replace any Fetch function with FetchOne instead.
- Add a Label control.
- In the Text field, add the following expression:
-
If the variable you created was of the type <Entity>, holding a single entity record, use
variableName.ColumnName.
-
For a variable holding multiple entity records, use
variableName.data(<Index>).ColumnName
, wherevariableName
is the name of your variable from which you want to retrieve data.
-
The app displays the value of an entity field at runtime.