AnsweredAssumed Answered

Scripting "Set Field" Loop in Related Table

Question asked by Robbie_1 on Apr 24, 2014
Latest reply on May 1, 2014 by philmodjunk

Title

Scripting "Set Field" Loop in Related Table

Post

     Hi All,

     I'm trying to create a script that will take information entered during the first part of the script, go to a related table, and run a loop to fill that information into a the related table's set of fields using variables established earlier in the script. Thus far everything seems to work okay, except for when the script get to the related record it is only changing the fields in one record, instead of looping through the whole found set. 

     The loop aspect of the script looks like this:

     *******************

     Go to Related Record [Show only related records; From table: "Example_Test"; External; Using layout: "Example_Test" (Example_Test)]

     Go to Record/Request/Page [First]

     Loop

     Set Field [Example_Test::Example_Test_Field; "Scan Pulled"]

     Set Field [Example_Test::Example_Test_Field2; $variable]

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

     End Loop

     Go to Layout [original layout]

     *******************

     What am I doing wrong?

     Thanks for the help. 

       

Outcomes