web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / OnSelect Navigate to s...
Power Apps
Unanswered

OnSelect Navigate to screen per mapping in SP List

(0) ShareShare
ReportReport
Posted on by 48

I have a gallery with a navigation arrow, when the user clicks the arrow they get taken to the relevant screen. 

lyndseylula_2-1678705412014.png

 

There is a SharePoint List which shows the different Services and which Screen each of those relates to.

lyndseylula_1-1678705384572.png

I'm trying to find a way for OnSelect of the arrow to lookup ThisItem.Service on the SharePoint List and grab the ScreenNav column entry, and go to that screen.

lyndseylula_3-1678705509401.png

 

The error I am getting is:

lyndseylula_4-1678705520654.png

 

Only workaround I could find online is to add a Switch

lyndseylula_0-1678705183957.png

and tell the app which screen to go to for each value on the SP List.  But I don't want to do any hard-coding, as the team maintaining the SP List won't have access to the App, and new Services will be added over time.

 

Do I need to create a table in the App OnStart? If so, what would the syntax be please? Any other suggestions? Thanks!

Categories:
I have the same question (0)
  • Verified answer
    TheRobRush Profile Picture
    11,128 Moderator on at

    Unless things have changed, you cannot make references to screens, and columns etc like that. A screen is an object, and what you would be referencing is just text. The program wouldn't see the correlation between the two. You could always post it as an idea in the idea forum'

     

    If you do not mind the table route something liek this would work, in OnStart

    ClearCollect(navTable, {reference: "ContactsScreen", pointTo:ContactsScreen})

     

    Text Input or label or  something to reference

     

    then a button or somethign to call

    Navigate(LookUp(navTable,reference=Label3.Text).pointTo)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard