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

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
ShAnc
Level: Powered On

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
ShAnc
Level: Powered On

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

Administrator
Administrator

Re: App Refreshes and Clears Filters on Gallery

hi @ShAnc - any luck with improved functionality? 

 

@TopShelf-MSFT

ShAnc
Level: Powered On

Re: App Refreshes and Clears Filters on Gallery

Hi @TopShelf-MSFT,

 

Yes - the solution worked. Thanks for the prompt!

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

Top Kudoed Authors
Users Online
Currently online: 403 members 3,985 guests
Please welcome our newest community members: