cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
quinncain
Helper II
Helper II

Navigate to different screens dependent on column value within selected row from gallery?

When a user selects a row from a gallery, my app currently navigates to a screen where the user can edit columns within that row. There are different edit forms dependent on a column within the selected row, so when the user selects a row to edit they should be sent to the appropriate edit form. What function could I use to achieve this?

1 ACCEPTED SOLUTION

Accepted Solutions
timl
Super User
Super User

@quinncain 

In the OnSelect property of the navigation icon/button on your gallery, you would call the Switch function to conditionally navigate the user to the appropriate screen.

In this example, if the value of "YourColumn" is "A", this will navigate the user to ScreenA. The similar logic applies to the values/screens B/ScreenB, and C/ScreenC.

Switch(ThisItem.YourColumn,
       "A", Navigate(ScreenA),
       "B", Navigate(ScreenB),
       "C", Navigate(ScreenC)
)

 

View solution in original post

2 REPLIES 2
timl
Super User
Super User

@quinncain 

In the OnSelect property of the navigation icon/button on your gallery, you would call the Switch function to conditionally navigate the user to the appropriate screen.

In this example, if the value of "YourColumn" is "A", this will navigate the user to ScreenA. The similar logic applies to the values/screens B/ScreenB, and C/ScreenC.

Switch(ThisItem.YourColumn,
       "A", Navigate(ScreenA),
       "B", Navigate(ScreenB),
       "C", Navigate(ScreenC)
)

 

This worked. Thank you for the help.

Helpful resources

Announcements
Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Users online (2,043)