Referencing Dataset Fields and Report Variables in a Script
Previous Topic  Next Topic 

Any variable that is defined on the Variables tab  can be referenced in a script. The variable’s name should be enclosed in angle brackets as in the examples below:


  if <Job: Flow Time> > 20 then ...


A variable’s value is changed only via the “Set” procedure:


  Set('my variable', 10);


Note that to assign a string value to the variable you must add quotes around the value:


  Set('my variable', '''' + 'String' + '''');


System variables, such as "Page#" should be referenced in exactly the same way:


  if <Page#> = 1 then ...


Dataset fields are referenced similar to variables except that the field name is surrounded by quotes as in:


  if <Jobs."QtyOrdered"> > 1000 then ...