What are the best possible ways we can show data in a screen once an item is selected in a gallery.
I know we can show the data in a DisplayForm. Is this the best and easiest way?
If we use another approach like individual labels to show the data and if there are many fields then wouldn’t it affect the performance ?
Solved! Go to Solution.
There is no need to add lookup function on each field. Once you have stored current selected list data in your variable => Set(varRecord, Gallery1.Selected); Navigate(DispFormScreen), then you can use this variable to display fields.
For example for Title label add below formula to Text property.
you can do this for all the labels
Depends on how much of the record you want to show and in what format. Do you want a full form showing up next to the gallery, or just some labels with datafield information?
Depends on how much of the record you want to show and in what format. Do you want a full form showing up next to the gallery, or just some labels with data field information?
There are 2 ways -
1. You can use variable to collect gallery selected data. Below function will go under OnSelect property of Icon or Gallery => Set(varCurrRecord, Gallery.Selected)
In DispForm's Item property add this formula - varCurrRecord
2. You can directly use Gallery.Selected in Item's property of Disp Form
Correct, I suggest to use Option 1 with the variable.
Also you can set the Visible field on the gallery to be true/false based on if you have a record selected or not, if you would like that.
Form is the best way to display list data. If you have a specific design or complex functionality that is difficult to implement using forms, then you can create a screen with labels added on it.
Lookup('table', row ID = gallery.selected.ID (pick a data field to check from))
put that into text labels for each data field you want to show
Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.
Your chance to join an engaging competition of Power Platform enthusiasts.
The Super User program for 2022 - Season 2 has kicked off!
Attend in person or online, there are incredible conferences and events happening all throughout the month of September.