
Announcements
I have a gallery with a navigation arrow, when the user clicks the arrow they get taken to the relevant screen.
There is a SharePoint List which shows the different Services and which Screen each of those relates to.
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.
The error I am getting is:
Only workaround I could find online is to add a Switch
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!
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)