Skip to Content

Context variables in scripting

Can you directly use a context variable in a script to compare with or do you always have to copy the data field onto the form?

Specific case:

I want to use the repeat indicator in HEAD_DETAIL of the INVOICE_INTERFACE to show or hide a text field (in a subform obviously).

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Sep 13, 2014 at 09:00 AM

    Hello Koenraad,

    You can use the context variable in the script only when the field has appeared in the Hierarchy tab of Form Layout.

    Background: After creating a new variable or using an existing variable in the context node, first the DATA VIEW tab of the layout gets updated. So when you open the layout and click on the DATA VIEW tab, you will be able to see this variable. Then you need to drag this variable from DATA VIEW tab into the Body Page or Master page. When you do this step, the variable comes under Hierarchy tab. Now you can place this variable in a sub form and when you write the script on the sub form you will be able to access the value of this variable.

    Add comment
    10|10000 characters needed characters exceeded