AnsweredAssumed Answered

How can I count the number of found records from a loop?

Question asked by miw on Feb 7, 2016
Latest reply on Feb 8, 2016 by miw

I am doing a replace field contents using a loop.  How can I tally the number of records in which the field was replaced so I can show in a dialog box at the end of the process?  Here is what I have scripted:

 

Go to Related Record [ From table: "Inventory" ; Using layout:  "Layout"]

Loop

Replace filed contents [ No dialog ; Field1 ; Fieldx ]

Go to Record/Request/Page [Next ; Exit after last ]

End Loop

 

So what I want to count are only those records where the relationship existed and for which the field data was replaced.  I would then create a dialog box which notes "## records have been found and data replaced"

Outcomes