Demo 14 - Use formulas in canvas app
Objective: In this demo, you will show how to use formulas, collections, and variables in a canvas app.
Task 14.1 - OnStart property
-
In the demo solution, edit the Pet Training canvas app.
- In the App’s OnStart property enter
Set (userprofile, User()); Clear(selectedRecords);
. - Add a Text label and move to top right of screen.
- Set the label’s Text property to
userprofile.FullName
.
Task 14.2 - Collection
-
In the OnSelect property for the PetList gallery replace with
Collect(selectedRecords, ThisItem);Navigate(DetailScreen);
- Run App.OnStart.
- Preview the app.
- Select a row from the gallery.
- Select Back and select another row.
- Close the Preview
- Show the Collection