cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
Frequent Visitor

Re: App Refreshes and Clears Filters on Gallery

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
Highlighted
Frequent Visitor

Re: App Refreshes and Clears Filters on Gallery

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

Highlighted
Anonymous
Not applicable

Re: App Refreshes and Clears Filters on Gallery

hi @ShAnc - any luck with improved functionality? 

 

@Anonymous

Highlighted
Frequent Visitor

Re: App Refreshes and Clears Filters on Gallery

Hi @Anonymous,

 

Yes - the solution worked. Thanks for the prompt!

Helpful resources

Announcements
Ignite

Microsoft Ignite

This will be a conference that you do not want to miss!

secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (5,681)