The scenario is if the Site Code is the same, that code will not be re-entry again. I am using for each row and “if” condition in my activity but i need to get that previous Site Code in validation condition.
Let me know how can i achieve that one. Many thanks.
Better remove the Duplicate rows from Datatable & create temp variable as empty by default. In for each row you can compare every iteration value then take only not matching row
That i want to know only the previous data of “A1” Column. For example, if the Site Code is changed or not equal to previous site code, my program will entry new data in new form.
These C0001101, C0001101 are in one form.
the next C00017, C00017, C00017 will be in new form.
You can use following steps to get it done. (All steps should be added to For Each loop)
Step 1: If condition - Add if condition to check if preSiteCode = row(“Site Code”).ToString
Step 2: Then: Perform some action
Step 3: Else: Enter new form data
Step 4: Assign Activity - preSiteCode = row(“Site Code”)
Basically we are preserving old value in temp variable here.