AnsweredAssumed Answered

Create New Records Script

Question asked by JohnJones_1 on Oct 19, 2013
Latest reply on Oct 21, 2013 by philmodjunk

Title

Create New Records Script

Post

     I am pretty new to scripting. I am trying to create a script that asks for an input number of new records and then generates that number of new records. The script below creates 1 new record. I would guess that I am not capturing the input number correctly but I can't figure out what I am doing wrong.

     Thanks, John

     Show Custom Dialog [ Title: "New Records"; Message: "How many new records?"; Buttons: “OK”, “Cancel”; Input #1: Registrations and Intros::NewRecCount ]

     If [ Get (LastMessageChoice) = 2 or IsEmpty (${Registrations and Intros}::NewRecCount) ]

     Exit Script [ ]

     End If

     Set Variable [ $NumSoFar; Value:0 ]

     Loop

     If [ $NumSoFar ≥ ${Registrations and Intros}::NewRecCount ]

     Exit Script [ ]

     End If

     New Record/Request

     Set Variable [ $NumSoFar; Value:$NumSoFar+1 ]

     End Loop

     Exit Script [ ]

Outcomes