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

Announcements

News and Announcements icon
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
    155,779 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
    155,779 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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 477

#2
WarrenBelz Profile Picture

WarrenBelz 341 Most Valuable Professional

#3
11manish Profile Picture

11manish 317

Last 30 days Overall leaderboard