cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper I
Helper I

Intermittent: gallery not showing records when filtered by variable set in app OnStart (3.19063.12)

I have a gallery, conected to a sharepoint list, which is filtered using a variable set in App.OnStart

Sometimes my gallery shows records, sometimes not.

 

How to reproduce

I have a sharepoint list 'Payment Requests' which has a text column called 'ApprovalStatus', I add records where some have ApprovalStatus ="Open". I generate the default three screen powerapp.

 

I add this to my app.onStart

Set(PaymentFilterStatus,"Open");

 

I then modify the galleries items property to :-

Filter('Payment Requests', ApprovalStatus = PaymentFilterStatus)

 

If I publish the app, then keep refreshing the app in the browser, sometimes it shows records in the gallery correctly, sometime it shows no records in the gallery. It's completely Intermittent.

 

Can someone explain this?

 

Thanks

 

12 REPLIES 12
Highlighted
Dual Super User III
Dual Super User III

That's one of the problems inherent in a declarative environment as opposed to a procedural one.  You don't control the order that things happen in.  Usually its not a problem, but when it is its a really big problem.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
Highlighted


@Pstork1 wrote:

That's one of the problems inherent in a declarative environment as opposed to a procedural one.  You don't control the order that things happen in.  Usually its not a problem, but when it is its a really big problem.


I could live with that, as long as it was consistent.

The fact that you get inconsistent behaviour from one run to the next is unacceptable.

 

Highlighted
Dual Super User III
Dual Super User III

The inconsistency comes from the fact that they are all running in parallel and there is no guarantee when one will finish compared to the next.  It runs the same way every time (consistently) its just the results that are inconsistent.  I agree its agravating, but its part of the design.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

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

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (8,144)