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 / Using a collection to ...
Power Apps
Answered

Using a collection to navigate through screens in a certain order

(0) ShareShare
ReportReport
Posted on by 36

Using a collection for navigation.

I have a collection that gives me the order in which I want users to navigate through my app screens by hitting the next button.

 

The inital button click, goes to the first item/screen in the collection (screen 11 in the image). Then I want to the next button to navigate to the second item/screen in the collection (screen 6). As you hit the next button, I would like to navigate to the remainder of the screens in the collection: 15, 7, 5, 12, 3, 2, 10, 14....

 

lalo1818_0-1683068050604.png

The collection will shuffle each time so it needs to be dynamic. Any ideas? I appreciate any help.

 

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    153,075 Most Valuable Professional on at

    Hi @lalo1818 ,

    Do a Collection like this (with your actual screen names)

    ClearCollect(
     colRandomNum,
     Table(
     {
     Id: 11,
     Screen: Screen1
     },
     {
     Id: 6,
     Screen: Screen2
     },
     {
     Id: 15,
     Screen: Screen3
     }
     )
    )

    And then

    Navigate(
     LookUp(
     colRandomNum,
     Id = YourNumberChosen
     ).Screen
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • lalo1818 Profile Picture
    36 on at

    That is the way I had it, but then I added the shuffle function. So with the shuffle function, the screen names with be different evey time. Should I use a variable for the screen?

     

  • Verified answer
    WarrenBelz Profile Picture
    153,075 Most Valuable Professional on at

    Hi @lalo1818 ,

    I do not believe what you want is possible (aligning random numbers with the correct screen - how do you choose the screen ?)

  • lalo1818 Profile Picture
    36 on at

    ok, good to know. I'll try different logic. I was using RandBetween, but it keeps giving me duplicates. Thank you for your help!

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 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard