Hi,
In my app, I have a screen which shows all the records that the current user have submitted.
OnVisible of the screen: Set(FilteredWorkOrders,Filter('[dbo].[Test]',SubmittedBy=UserEmail, Deleted = false));Refresh('[dbo].[Test]');
Items of the gallery: SortByColumns(Search(FilteredWorkOrders, TextInput6.Text, "Description"),"id",If(SortDescending1,Descending,Ascending))
OnSelect of Gallery: Set(CurentUser, User());ResetForm(EditForm1);Navigate(CreateScreen, ScreenTransition.Fade);Set(selected,Gallery1.Selected)
Users who have submitted more than 500 records are not able to see the 501th and more. I tried changing the limit to 2000 by going to file- setting- advanced settings- value=2000 but I dont see all the details of the app as expected. Its causing more issues.
Is there a better way for me to fix this ? Any advise is much appreciated.
Solved! Go to Solution.
Hi @asdeev ,
Have you taken a try to use a Collection to store your Filter result instead of a variable?
Please consider take a try with the following workaround:
Set the OnVisible property of the screen to following:
ClearCollect(
FilteredWorkOrders,
Filter('[dbo].[Test]', SubmittedBy = UserEmail, Deleted = false)
);
Refresh('[dbo].[Test]')
Then use the FilteredWorkOrders collection as data source in your Gallery.
Note: Please make sure you have set the "Data row limit for Non-delegable queries" option to maximum value -- 2000 within Advanced settings of App setting.
In addition, if the amount of your SQL Table records is more than 2000, you could consider bulk-load your SQL Table records into multiple separated collections in your app, then merge these collections into a single one collection, then use the single one collection as data source in your app.
Please check and see if the solution mentioned in following thread would help in your scenario:
Note: If you want to use above alternative solution, you need to define a Row Index type column (e.g. 1,2,3,4,5,6, ....) in your SQL Table firstly.
Best regards,
I believe you are running into the infamous delegation issues. Are you getting a delegation warning in your Items property of the gallery? One suggestion is to collect all your data in a collection and then use the same formula that you have.
ClearCollect(FilteredWorkOrdersCollection, FilteredWorkOrders) (may be use this in the OnStart property of the app)
And then use this collection as your source for the gallery.
OnVisible of the screen: Set(FilteredWorkOrdersCollection,Filter('[dbo].[Test]',SubmittedBy=UserEmail, Deleted = false));Refresh('[dbo].[Test]');
Items of the gallery: SortByColumns(Search(FilteredWorkOrdersCollection, TextInput6.Text, "Description"),"id",If(SortDescending1,Descending,Ascending))
---
If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution. Thanks!
Hardit(Haman)
Just try with the updated Gallery items property. What are you using the OnScreen visible expression for? The main idea is to change your datasource to the collection rather than connecting it directly to the Work Orders.
---
If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution. Thanks!
Hardit(Haman)
Hi @asdeev ,
Have you taken a try to use a Collection to store your Filter result instead of a variable?
Please consider take a try with the following workaround:
Set the OnVisible property of the screen to following:
ClearCollect(
FilteredWorkOrders,
Filter('[dbo].[Test]', SubmittedBy = UserEmail, Deleted = false)
);
Refresh('[dbo].[Test]')
Then use the FilteredWorkOrders collection as data source in your Gallery.
Note: Please make sure you have set the "Data row limit for Non-delegable queries" option to maximum value -- 2000 within Advanced settings of App setting.
In addition, if the amount of your SQL Table records is more than 2000, you could consider bulk-load your SQL Table records into multiple separated collections in your app, then merge these collections into a single one collection, then use the single one collection as data source in your app.
Please check and see if the solution mentioned in following thread would help in your scenario:
Note: If you want to use above alternative solution, you need to define a Row Index type column (e.g. 1,2,3,4,5,6, ....) in your SQL Table firstly.
Best regards,
Thanks!! that worked!
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
User | Count |
---|---|
190 | |
53 | |
51 | |
38 | |
37 |
User | Count |
---|---|
282 | |
97 | |
85 | |
80 | |
77 |