Hello all,
I'm working on a Time and Expense forcasting app - users enter upcoming expenses into it before they spend the $ and get approval if they exceed a certain $.
In my app (using sharepoint list datasource), the user enterings data via an editform which i'm storing into a collection. When they're done and submit, I'm doing a ForAll to patch allitems of the gallery displaying the collection to a Sharepoint list. On the same screen that they're entering data into the form, there's a second gallery that displays their existing entries. The newly submitted entries get added to the datasource, and they populate into the second gallery once submitted. There's labels that show a total of the expenses. If the total of items in the first collection plus the total of the items in the existing collection are > $2000, I'm populating an html control to send to Flow for approval.
When forall patches to the datasource, the existing expenses gallery wasn't always showing newly added items that just got submitted, and sometimes the gallery would show the data but the labels showing the totals weren't updating to include the newly added entries. I started realizing it was a timing issue with everything happening too quickly, so I started adding timers to 1) refresh the datasource, 2) clearcollect the datasource for the second gallery's items and 3) re-total up the totals. Now i've got a timer which, on timer end starts another timer which starts another and think i've gone overboard on the timers . I also found the timing issue wasn't happening if I previewed the app, but if I loaded it normally outside of the previewer, it was happening more often.
Now that i'm in timer overload, if I don't make one timer's duration long enough, the next timer won't even start. Some of the timers, I've left the OnTimerStart to false, and just do the work OnTimerEnd.
Are all of these timers necessary to accomplish my goal and how do I get out of this timer madness! 😞
Thx in advance

Report
All responses (
Answers (