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

App Refreshes and Clears Filters on Gallery

I have a reporting app that I've tested without problems (with a few users), but a few bugs have cropped up after releasing it.

 

The app is a simple Search Filter -> Gallery -> Form. The Text in the Search Filter defaults to User.FullName and items in the Gallery are filtered based on a StartsWith formula. Users can clear the filter to see other users' items, but from a UX perspective I wanted them to see their items first.

 

The thing is that on loading, the app will manifest one of two behaviours:

1. It will clear the filter on the gallery, returning all items even though the default text in the search filter box is still the user name

2. When someone is typing into the search filter, the app will occasionally pop the cursor out of the box and people have to click back in the box to complete their query.

 

Both of these are somewhat minor--people can re-enter their name in the search box and the app will filter the gallery again, and people can still complete their filters by clicking back in the text bar and completing their search parameter--but it is an irritant.

 

Any ideas what might be causing this?

1 ACCEPTED SOLUTION

Accepted Solutions
Frequent Visitor

I'm trying a solution from this site.

 

Essentially, it suggests using the following command on the home page to cache the current user's name.

 

OnStart -> Set(CurrentUser, User()) 

 

Then, when calling the user name, such as in my search box' default text, I replace User().FullName with CurrentUser.FullName. It's supposed to improve functionality. I'll report back if this is the case.

View solution in original post

3 REPLIES 3
Frequent Visitor

I'm trying a solution from this site.

 

Essentially, it suggests using the following command on the home page to cache the current user's name.

 

OnStart -> Set(CurrentUser, User()) 

 

Then, when calling the user name, such as in my search box' default text, I replace User().FullName with CurrentUser.FullName. It's supposed to improve functionality. I'll report back if this is the case.

View solution in original post

Anonymous
Not applicable

hi @ShAnc - any luck with improved functionality? 

 

@Anonymous

Hi @Anonymous,

 

Yes - the solution worked. Thanks for the prompt!

Helpful resources

Announcements
News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

Power Apps Community Call

Power Apps Community Call- January

Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

Top Solution Authors
Top Kudoed Authors
Users online (10,560)