AnsweredAssumed Answered

1st Script Help

Question asked by MarkRuddeforth on Dec 16, 2013
Latest reply on Dec 17, 2013 by MarkRuddeforth

Title

1st Script Help

Post

     Built my first script to change the value of a field based upon the existence of an entry in a date field - and of course it doesn't work......

     Go To Layout [ "CUSTOMERS" (CUSTOMERS) ]

     Go To Record/Request/Page [First]

     Loop

          If [ IsEmpty (CUSTOMERS::CONTRACTDATE) ]

                Set Field [ CUSTOMERS::CONTRACT["E"] ]

          Else

                Set Field [ CUSTOMERS::CONTRACT["X"] ]

          End If

          Go To Record/Request/Page [Next: Exit after last ]

     End Loop

      

     See anything obvious as to why it does nothing? Is there a way to print a message to the screen during a script execution - that would help me with debugging....

     Thanks,

     Mark

Outcomes