Hi i have this Gallery connected to a sharepoint list and when i update the column "Utfall" thats yellow marked by pressing the save button "Spara", it takes 1 minutes and 30 seconds to update it.
Is there any faster way to get this done?
The code that im using for the OnSelect event for the button is:
ForAll(Gallery1.AllItems;
UpdateIf(
Produktionskommentar; ID = Value(ID); {Utfall:Value(txtUtfall.Text)}))
Thanks Petter
Solved! Go to Solution.
Hi @Petter120 ,
This approach will reduce the execution time:
ForAll(
Gallery1.AllItems AS dataFromGallery;
Patch(
Produktionskommentar;
LookUp(Produktionskommentar; ID = dataFromGallery.ID);
{Utfall:Value(txtUtfall.Text)}
)
)
Hope it helps !
Hi @Petter120 ,
This approach will reduce the execution time:
ForAll(
Gallery1.AllItems AS dataFromGallery;
Patch(
Produktionskommentar;
LookUp(Produktionskommentar; ID = dataFromGallery.ID);
{Utfall:Value(txtUtfall.Text)}
)
)
Hope it helps !
Wow no it takes 3 seconds.
Thanks 🙂
Now i was too fast its not updating the sharepoint list (Probably why it goes so fast), any ideas why is it something with the ID?
I updated my post. Please give it a try in this form.
Now it works, thank you
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 |
---|---|
199 | |
72 | |
51 | |
42 | |
30 |
User | Count |
---|---|
268 | |
121 | |
94 | |
90 | |
81 |