cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Coopedup
Resolver I
Resolver I

Default record from Table

Hi,

 

How do I set the default selected record of a gallery when using Table for my items?

 

I'm using a Gallery on multiple screens to act as my navigation tabs. When a tab is selected it navigates to the screen associated to the Tab.  The problem I get is that after navigation it stays on the screen but gallery selected option moves randomly to a different tab rather stay on the selected!

 

This is my table for Items (same in each screen gallery). Also a view of me having selected the "Mitigation" tab , landing on the screen and then the tab marker setting to Ratings (this is not the screen I navigated from!)

Table(
    {Name:"Info", ToScreen:'Risk Info'},
    {Name: "Ratings", ToScreen:'Risk Ratings'},
    {Name: "Notes", ToScreen:'Risk Notes'}, 
    {Name: "Mitigation", ToScreen: 'Risk Mitigation'}, 
    {Name: "All Details", ToScreen: 'Risk All Details'}, 
    {Name: "Escalate", ToScreen: 'Risk Escalate'}, 
    {Name: "5x5", ToScreen: 'Risk 5x5'} 
    )

 

Coopedup_0-1615019122218.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
WarrenBelz
Super User III
Super User III

Hi @Coopedup ,

If you want the Ratings item to be selected automatically, put this on the Default of the Gallery

{Name: "Ratings"}

and on the navigation to the screen put

Reset(YourGalleryName)

 

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.

View solution in original post

1 REPLY 1
WarrenBelz
Super User III
Super User III

Hi @Coopedup ,

If you want the Ratings item to be selected automatically, put this on the Default of the Gallery

{Name: "Ratings"}

and on the navigation to the screen put

Reset(YourGalleryName)

 

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.

View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

PA Community Call

Power Apps Community Call

Next call is happening on April 21st at 8a PST.

MBAS Carousel

Sign up for our May 4th event!

May the fourth be with you, join us online!

secondImage

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Top Solution Authors
Top Kudoed Authors
Users online (53,056)