Variable element

Variable element

It is possible to define one or more variables in the InterFormNG2 designer. The advantage is, that you can use variables e.g. to add up all the detail lines of a page and output the page total in the footer.

You can also use variables in normal XPath functions.

Another kind of variable is the workflow variable, which can be used for sending variables/information from the workflow to the template.

Notes
Please note, that the name of a variable is not allowed to start with a number, it cannot contain a dollar sign and the variable names are case sensitive.

This video introduce the use of variables in the designer:

 



    • Related Articles

    • Workflow variable element

      You can define two kinds of variables in your templates: 1.A normal variable, which is defined and used only within the template. 2.A workflow variable, which can be used for e.g. for sending user defined variable information from the workflow to a ...
    • Advanced XPath Features

      For more complex scenarios, XPath provides regular expressions, variable assignments, and special functions to manipulate and evaluate XML data dynamically. This section covers these advanced features. Working with regular expressions in XPath Using ...
    • Table element

      You can use a table element to insert design elements in organized rows and columns. Each cell in the table can be surrounded by a border and/or filled out with a color. You can even create a dynamic table with a row for each detail line in the input ...
    • Repeat element

      You can make InterFormNG2 repeat a selection of elements in a sub-folder. The repeat element repeats e.g. the elements a number of times, where this number can be either fixed or found via an Xpath expression, but it can also repeat the sub-folder ...
    • Translation element

      A translation can be inserted in the designer either by clicking this icon: - or by referring to a translation in a text element. A similar XPath function is the built-in function, ng:translate. The translations can be used if you e.g. want to create ...