Hello,
We have a build a canvas app, which loads data from Business Central through a virtual table (in Dataverse). We use this code in a gallery:
In the gallery we have filters on the data; see the example above. The number of records that pass the filter are normally below 20, so in the gallery there are sometime 13, 5, 2, 18 records to see, depending on the value of the variable 'Afd'. But loading the gallery takes on a device (tablet) 5-20 seconds. The number of records in the totalset is around 1700. Scrolling can take up to 8 seconds to refresh. What can be the problem here? How can we improve this? All ideas are welcome!!!
Thank you in advance!
What I have done so far is
reduce the number of fields in the gallery from 21 to 9 by combining text
there are several lookups in the fields..
Also the number of columns is like 20
No it has no delegation issues. Maximum of records is 50 that will be retrieved..
Does your gallery filter query have any delegation issues? That would also explain the poor performance.
Thx for your answer. Unfortunately this is not possible in the app. Everytime the user goed to screen, the newest data has to be retrieved, because in the meanwhile the value of a record could have been changed..
If load times is an issue u can always get all the data into a collection in the Apps Onstart and then use that within the gallery. That should go faster in my experience.
WarrenBelz
146,524
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,906
Most Valuable Professional