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 Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,294)