Hi, I have built an app the uses clearcollect() - this also includes addColumns which is adding a column based on a custom connector to retrieve distance and duration data from google matrix api.
I have had no issues with small data sets - this being dataverse
However, with large data it seems as though i have to click the button twice for it to retrieve the correct data and display on the gallery with the correct distance and duration otherwise it shows the incorrect data.
@Anonymous
How large the data you are referring when you are having the issue?
Do you see any delegation warning (blue line under the formula)?
Regards
Krishna Rachakonda
If this reply helped you to solve the issue, please mark the post as Accepted Solution. Marking this post as Accepted Solution, will help many other users to use this post to solve same or similar issue without re-posting the issue in the group. Saves a lot of time for everyone. |
There are no delegation warnings. It seems to work correctly when clicking the button again, this is not ideal for users.
@Anonymous
When you click the button, set a context variable to disable the button and re-enable the button as soon as the clear function completes.
Example:
Button control: btnClearCollection
Button's OnSelect: UpdateContext({varDisableButton:True});ClearCollect(<your code>);UpdateContext({varDisableButton:False});
Button's DisplayMode: if(varDisableButton, DisplayMode.Disabled,DisplayMode.Edit)
I think ClearCollect may be taking sometime to clear out the values.
With above test, we can see if the button is disabled while clearing the collection or not.
Try above approach and post here if you have any comments.
Regards
Krishna Rachakonda
If this reply helped you to solve the issue, please mark the post as Accepted Solution. Marking this post as Accepted Solution, will help many other users to use this post to solve same or similar issue without re-posting the issue in the group. Saves a lot of time for everyone. |
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
User | Count |
---|---|
187 | |
66 | |
45 | |
42 | |
20 |
User | Count |
---|---|
246 | |
120 | |
83 | |
74 | |
69 |