cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
AdhamFH
Helper V
Helper V

Show data in Gallery

Hello, 

 

i have gallery to show my data in powerapps

Capture3.PNG

is it possible to set my default gallery to blank or not show any data not like the picture above, so i want to show it based on what i search on textinput

1 ACCEPTED SOLUTION

Accepted Solutions
v-xida-msft
Community Support
Community Support

Hi @AdhamFH ,

Have you solved your problem?

Do you want to display the Gallery Items only when you type some search text within the Search box?

 

I have made a test on my side, please consider take a try with the following workaround:

Solution1:

Set the Items property of the Gallery to following:

If(
   IsBlank(TextSearchBox.Text),
   Filter(DataSource, false),
   Search(DataSource, TextSearchBox.Text, "Column1", "Column2", ...)
)

 

Solution2:

Set the Visible property of the Gallery to following:

If(
   IsBlank(TextSearchBox.Text),
   false,
   true
)

Set the Items property of the Gallery to following:

Search(DataSource, TextSearchBox.Text, "Column1", "Column2", ...)

 

Please consider take a try with above solution, check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hey @AdhamFH ,

 

Not sure if this would work, but you could try changing the Visible property of the gallery to something like:

 

If(

IsBlank(SearchBoxField),

false,

true)


where SearchBoxField is the name of the text input of your search box. Granted this only hides the gallery until you start typing in the search field. There might be a way to make it so that the gallery stays hidden until a result matches, but I'm not sure how to go about that. I'll play around and see what I come up with.

 

Hope this helps!

 

thank you @Anonymous it really helps

v-xida-msft
Community Support
Community Support

Hi @AdhamFH ,

Have you solved your problem?

Do you want to display the Gallery Items only when you type some search text within the Search box?

 

I have made a test on my side, please consider take a try with the following workaround:

Solution1:

Set the Items property of the Gallery to following:

If(
   IsBlank(TextSearchBox.Text),
   Filter(DataSource, false),
   Search(DataSource, TextSearchBox.Text, "Column1", "Column2", ...)
)

 

Solution2:

Set the Visible property of the Gallery to following:

If(
   IsBlank(TextSearchBox.Text),
   false,
   true
)

Set the Items property of the Gallery to following:

Search(DataSource, TextSearchBox.Text, "Column1", "Column2", ...)

 

Please consider take a try with above solution, check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Top Kudoed Authors
Users online (36,646)