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

Search in progress indicator

Hello good people of Power Apps. 

 

I have been looking for a solution (if there is any) for this problem a couple of months now, and hope someone has a solution. 

 

I have an App connected to SQL where people can search and pick parts they use in a project.

I have a input text where they start typing what they need. A gallery runs Search(mrp.table;textinput;"name"). 

 

The function works fine, but as I have about 600 000 items in the sql table, it sometimes takes a while.

 

Question. Is it possible to get an indicator from the search function if it is in progress or completed (or anything) that I can use to inform the user whats going on. 

 

It would be nice to have a text saying (searcing...) and if no result (no results). Anything would help :). 

 

Best regards

Tommy 

1 ACCEPTED SOLUTION

Accepted Solutions
Delid4ve
Level 10

Re: Search in progress indicator

Hmmm..

 

How about:

Set your gallery items to a variable (GalleryVariable)

Add your label which will display searching and set it to a variable (SearchingVariable)

On your seach text box set the on change value to:

 

Set(SearchingVariable,"Searching");
Set(GalleryVariable,Search(mrp.table;ThisTextbox.Text;"name");
Set(SearchingVariable,"")

 

Don't know what performance will be like but should work

 

 

 

 

View solution in original post

4 REPLIES 4
Delid4ve
Level 10

Re: Search in progress indicator

Hmmm..

 

How about:

Set your gallery items to a variable (GalleryVariable)

Add your label which will display searching and set it to a variable (SearchingVariable)

On your seach text box set the on change value to:

 

Set(SearchingVariable,"Searching");
Set(GalleryVariable,Search(mrp.table;ThisTextbox.Text;"name");
Set(SearchingVariable,"")

 

Don't know what performance will be like but should work

 

 

 

 

View solution in original post

TurboTape
Level: Powered On

Re: Search in progress indicator

I know there where clever guys out there 😊

 

Thanx a lot. This seems to work nice. The only thing is you need to hit enter or tab for the onChange to start. I kept the Search() code in my gallery and only use the GalleryVariable for information so people searing by typing will get a result (but no information). People who hit enter will get information. 

 

Tommy

Delid4ve
Level 10

Re: Search in progress indicator

@TurboTape there is a delay input property, haven't played with it myself but may solve the enter/tab issue

TurboTape
Level: Powered On

Re: Search in progress indicator

@Delid4ve  I have tried this on my search gallery earlier. It works only on the "live search" part, like it waits a bit while you're typing before starting to search, but thanks for the tip anyway 😊

 

Just to be sure I just checked this, and it did not make the "on Change" run in either false or true state. 

I will try some other things later on. If I find a solution I will post it here. 

 

Tommy

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,234)