Form Engine Variables
    • 30 Jan 2026
    • 1 Minute to read
    • Contributors
    • PDF

    Form Engine Variables

    • PDF

    Article summary

    Applies to: Lasernet 11

    Variable Name

    Description

    CurrentRearrange

    The CurrentRearrange variable is generally available in all scripts called from named rearranges. It contains a reference to the rearrange from which the script is being called. It is of the type InputRearrange.

    Line

    The Line variable is generally available in all scripts called from named rearranges. It contains the line number on which the CurrentRearrange is placed, for the pattern on which the rearrange is placed. It is used to refer to other named rearranges on the same pattern.

    The Line variable starts with line number set to 0 (zero).

    function CalcPrice() : Number
    {
       return Price[Line].number * Quantity[Line].number;
    }

    GlobalLine

    The GlobalLine variable is generally available in all scripts called from named rearranges. It contains the global line number on which the CurrentRearrange is placed. This line number includes all patterns.

    The GlobalLine variable starts with line number set to 1 (one).

    masterJob

    Available from scripts run on Sheet Modifiers and rearranges. masterJob is of type Job. It is from this that the job is copied when each sheet starts processing. This means that you can use masterJob to copy data to the next sheet.

    masterJob.setJobInfo("JobInfoName", "Value");