0

Below shows the image of the items in the vertical gallery in Powerapp:

enter image description here

Below is the image of the screen for checklists content: enter image description here

This is the sample data: enter image description here

Desire outcome: For instance, if I select "office" item in the vertical gallery, it should navigate me to a screen showing the checklists for the office. Let's say if I go back and select "Meeting room" item in the vertical gallery, it should navigate me to the SAME screen showing the checklists for the meeting room. In short, I want to on list item select to navigate me to the same screen and change the content (checklists) of the screen dynamically.

J_Y
  • 143
  • 4
  • 16

1 Answers1

1

You can access the selected row of the gallery with Gallery.Selected from the checklists screen. This will give you access to the selected row/record in the data source that is feeding the Gallery control on the first screen.

SpencerL
  • 66
  • 4
  • Any examples :( @SpencerL – J_Y Dec 07 '18 at 02:13
  • For example, a screen could have a gallery named `Gallery1` whose `Items` property is bound to `Table({ Field: 1 }, { Field: 2 })`. Another screen could contain a label control whose `Text` property is set to `Gallery1.Selected.Field`. If `Gallery1` or one of its children controls had a `Navigate` call for `OnSelect` that navigated to the screen with the label, the label would show the `Field` value from the selected row of the gallery. – SpencerL Dec 07 '18 at 16:33
  • I dunno where all these canvas-app functions are supposed to put like for instance to put in OnChange or OnSelect? :O @SpencerL – J_Y Dec 08 '18 at 11:37
  • Could you post a sample of the above based on my values provided? @SpencerL – J_Y Dec 08 '18 at 14:22
  • In your case, you would want to update the `OnSelect` of the gallery itself or the `OnSelect` of the right arrow control inside the gallery. I would recommend putting it on the gallery, so that you can click anywhere in the row of the gallery to trigger the `OnSelect`. However, in this case you will want to ensure that the controls inside the gallery have `Select(Parent)` so that when they are clicked, the `OnSelect` of the gallery is run. – SpencerL Dec 12 '18 at 23:45