cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Minhyun
Level: Powered On

How to set gallery item(button) selected when opening the app?

I made a gallery(named as GalleryFilter) to filter other gallery(connected with Sharepoint list).


In GalleryFilter, I added the button.

 

I set the items property of GalleryFilter as below;

GalleryFilter.Items = Table({Filter: "결재 중"}, {Filter: "승인"}, {Filter: "반려"})

 

I want the {Filter: "결재 중"} button to be selected when opening the app.

So I set the default property of GalleryFilter as below, but it didn't work.

GalleryFilter.Default = First(Table({Filter: "결재 중"}, {Filter: "승인"}, {Filter: "반려"}))

 

What should I do? Please help me.

1 ACCEPTED SOLUTION

Accepted Solutions
Sattar312
Level: Power Up

Re: How to set gallery item(button) selected when opening the app?

Hi,
You can't filter the table as it is an adhoc table. Work around to achieve this is to create a collection say colfilter onVisible as below
ClearCollect(colFilter,{Filter: "결재 중"}, {Filter: "승인"}, {Filter: "반려"})
and set your galleryFilter item as Filter(colFilter, Filter= "결재 중")

Hope this works
🙂

View solution in original post

3 REPLIES 3
Super User
Super User

Re: How to set gallery item(button) selected when opening the app?

Use the Select(buttonname) function in the OnVisible property of the screen.

Minhyun
Level: Powered On

Re: How to set gallery item(button) selected when opening the app?

image.png

I can't specify the button, I think it's because the button is the element of the gallery.

 

 

Sattar312
Level: Power Up

Re: How to set gallery item(button) selected when opening the app?

Hi,
You can't filter the table as it is an adhoc table. Work around to achieve this is to create a collection say colfilter onVisible as below
ClearCollect(colFilter,{Filter: "결재 중"}, {Filter: "승인"}, {Filter: "반려"})
and set your galleryFilter item as Filter(colFilter, Filter= "결재 중")

Hope this works
🙂

View solution in original post

Helpful resources

Announcements
Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Join THE global Microsoft Power Platform event series

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Microsoft Business Applications Virtual Launch

Join us for the Microsoft Business Applications Virtual Launch Event on Thursday, April 2, 2020, at 8:00 AM PST.

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (9,017)