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 / set auto default lates...
Power Apps
Answered

set auto default latest record for gallery

(0) ShareShare
ReportReport
Posted on by 418

Hi, how do I set always auto default to 1st/latest record on my filter gallery? as my current scenario.. If I hit 2nd row or what ever row..when I quit from that page & come back to the list, it will default to the last row/item that I have already hit..

 

Thanks

Categories:
I have the same question (0)
  • v-bofeng-msft Profile Picture
    on at

    Hi @twister :

    Do you want to make the gallery to select the first item in the gallery by default when you come back to this screen?

    If so,please try this solution:

    1\ set the Screen(The screen where the Gallery is located)'s OnVisible property to

    Reset(GalleryName)

     2\Clear the gallery's Default property

    30.gif

    Best Regards,

    Bof

  • twister Profile Picture
    418 on at

    actually my gallery has search,sort & filter function to display the list.. not working as example above..

  • v-bofeng-msft Profile Picture
    on at

    Hi @twister :

    Could you provide more details?What is the specific formula? Which controls are involved and where are these controls? How did they set it up?

    In addition, I think this should not have an impact.

    Best Regards,

    Bof

  • twister Profile Picture
    418 on at

    First Select ID = 65

    twister_2-1617610921925.png

     

    After back, Gallery 1st is set back to latest ID, but 2nd Gallery not reset.

     

    twister_1-1617610800824.png

     

  • Verified answer
    v-bofeng-msft Profile Picture
    on at

    Hi @twister :

    Please try:

    1\Set the screen's OnVisible
    Reset(Gallery1)

    2\Set Gallery2's Items property to:

    Filter(XXX,Title=Gallery1.Selected.ID)

    I think it is better not to use variables in this case.

     

    If you insist on using variables, you can also try this solution:

    1\Set the screen's OnVisible
    Reset(Gallery1);Set(varRecord1,Gallery1.Selected)

    Best Regards,

    Bof

  • twister Profile Picture
    418 on at

    I tried to use variable.. but same result.. Gallery 2nd not reset.

     

    twister_0-1617612733877.png

     

  • v-bofeng-msft Profile Picture
    on at

    Hi @twister :

    Please try:

    1\Set the screen's OnVisible
    Reset(Gallery1)

    2\Set Gallery2's Items property to:

    Filter(XXX,Title=Gallery1.Selected.ID)

     

    In addition, could you please tell me what changes you made every time you reply?

     

    Best Regards,

    Bof

     

  • twister Profile Picture
    418 on at

    actually I just changed as your advise.. only this..

     

    If you insist on using variables, you can also try this solution:

    1\Set the screen's OnVisible
    Reset(Gallery1);Set(varRecord1,Gallery1.Selected)



     

  • twister Profile Picture
    418 on at

    issue resolved if not using variables..

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard