June 5, 201213 yr By now, I use this newbie method lol. I have a script that generates some new records in table 2, depending on a date in table 1, after a search. With a $variable get(foundcount) I count these records, so at the end of the script I can show a dialog saying "xx new records generated". After some improvements, now not all founded records need to generate a new one in table 2. How could I count only the number of new records generated?
June 5, 201213 yr Not sure how exactly you go about creating those new records, but the following method should work any way. Count the new records during creation, e.g. with Set Variable ( $numberOfNewRecords ; 0 ] when the script starts, and a Set Variable ( $numberOfNewRecords ; $numberOfNewRecords + 1 ] step after every New Record step. Finally, display a dialog saying $numberOfNewRecords & " new records generated.".
June 5, 201213 yr Author Sorry, self answer. After New Record/Request step Set Variable [$A; value:$A + 1] Two hours thinking and I see the light 10 minutes after crying for help, lol Sorry eos, I didn't see your post. Thanks for the help. You are right.
Create an account or sign in to comment