cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Super User
Super User

Bug: Gallery inside datacard inside form with delegable datasource - skipping first 100 matches

I think the latest update to studio is the cause of this bug which appears to affect both Studio and the web player (have not tested on the iOS or Android players).

Looking at an App for a client that has a gallery inside a Datacard inside a Form and is populate by a delegable filter (SQL datasource, using Search based on the text entered in a text box) - we were not seeing the expected results (missing entries we would expect to see). A copy of the Gallery - identical in every way but outside the Form works as expected.

A few hours of research and found (by checking Monitor) that when the Gallery is in the Datacard, PowerApps does the usual 'Get Top 100 rows' but then immediately (without any interaction by the user) performs a second data-fetch using (Skip 100 Rows, Get 100 Rows). The results of the first data-fetch don't show up in the Gallery.

We recreated several galleries to confirm this behaviour.

The client will log a ticket with MS Support. Adding to this post to warn the community.

I know I am a broken record on PowerApps releases and (the lack of) quality control) but I'll say it yet again - this platform is pretty much unusable for any kind of serious or critical App. Any cost savings made by the faster development times of drag-n-drop, low-code development is soon lost on maintenance trying to fix issues that often turn out to be yet more platform issues introduced by the latest weekly update ☹️

1 ACCEPTED SOLUTION

Accepted Solutions

Heard back from Support. Adding a gallery to a datacard apparently is not an expected/supported scenario and the difficulty in adding galleries to Datacards apparently is a conscious choice to discourage users from attempting to do this - though it is possible to do it if you try. It would be nice if there was a message rather than this just appear to be another a UI bug!

If you have followed this 'model' (Gallery with delegable datasource inside a Datacard) then the recommendation is to use a Behaviour action to populate a collection and then use the collection as the datasource for the gallery.

View solution in original post

3 REPLIES 3
Community Support
Community Support

Hi@

If possible, please post the updates when there is some progress.

 

Best Regards,

Qi

The inability to copy/paste reliably is indeed a UI bug, thanks for checking that.

The specific issue affecting us at the moment though is that a gallery inside a form's datacard is behaving differently to a gallery with the same properties outside of the data card.

The gallery in the datacard has as it's items property a delegable formula incorporating Search (though other predicates appear to cause the same issue) - when entering a value in the text box on which forms part of the Search, a 'Get Rows' is fired (specifying top 100) and then immediately (tenths of a second) another 'Get Rows' is performed but specifying 'skip 100'. The gallery fills with the second batch of 100 rows, the first batch seemingly being discarded.

Heard back from Support. Adding a gallery to a datacard apparently is not an expected/supported scenario and the difficulty in adding galleries to Datacards apparently is a conscious choice to discourage users from attempting to do this - though it is possible to do it if you try. It would be nice if there was a message rather than this just appear to be another a UI bug!

If you have followed this 'model' (Gallery with delegable datasource inside a Datacard) then the recommendation is to use a Behaviour action to populate a collection and then use the collection as the datasource for the gallery.

View solution in original post

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 (3,687)