cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
J_1
Frequent Visitor

How to set gallery to display every item by default

My gallery is set as a var, so i am wondering how can i make the gallery show every user, when the app is started, or when nothing is input into the search box.

 

Gallery: varTable

Searchbox OnSelect: 

If(IsBlank(Trim( IskalnikZaposlenihTxt.Text)),DisplayMode.Disabled,DisplayMode.Edit)

Search Button: 

Set(varTable, Filter(Office365Users.SearchUser({searchTerm:IskalnikZaposlenihTxt.Text,top:50}), Department = OddelekDropdown.Selected.Result, IsMatch(Mail, "xyz", Contains & IgnoreCase)))

 

I would like for the gallery to simply show every employee, when nothing is selected or when app is first opened - default load page to show every employee in the database. 

Thank you for helping!

1 ACCEPTED SOLUTION

Accepted Solutions
v-qiaqi-msft
Community Support
Community Support

Hi @J_1,

Set the OnStart property of the App as below:

Set(varTable,Office365Users.SearchUser({searchTerm:"",top:999}))

 

 

 

Best Regards,
Qi

View solution in original post

1 REPLY 1
v-qiaqi-msft
Community Support
Community Support

Hi @J_1,

Set the OnStart property of the App as below:

Set(varTable,Office365Users.SearchUser({searchTerm:"",top:999}))

 

 

 

Best Regards,
Qi

Helpful resources

Announcements
Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Users online (4,116)