Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Work Tasks

Invoke Form - Update Form Parameters

  • Last UpdatedJun 26, 2024
  • 2 minute read

A parameter represents a value that is passed to a variable. The parameter value is defined when the variable is declared in the procedure. A procedure can be defined with no parameters, one parameter, or more than one. The part of the procedure definition that specifies the parameters is called the parameter list.

Here, parameters represent the form variables where the user can define while designing the form. These parameters can be used in Forms scripts, in user look up controls to build the filter expression, and as a parameter for the lookup query.

Note: Form parameters values are not stored either in form definition or in database. These values are rendered when the form is rendered.

How to define parameters: To work with parameters, the Form should have parameters defined. To define the Form parameter, on the corresponding Forms Designer screen, click Edit properties of the form on the top. Click the Advanced tab. You can define the parameter in the Form Properties section. You can define the parameter clicking the Add Row.

How Form parameters can be used?

Form parameter can be used in Form scripts, in user look up controls to build the filter expression, and as a parameter for the lookup query. Below is the sample scenario for how parameters can be used in form scripts.

Suppose in our form we have two controls Employee id & Manager Name. Based on the Employee id entered, we can populate the Manager name. To achieve this, we need to write the script (C#) to update the Manager name value from Form parameters. This parameter value can be updated from workflow.

Steps to set Update form parameters:

  1. Click the edit button corresponding to Update form parameters. The following screen will be displayed.  

  2. To select a form parameter from the drop-down list, click the drop-down. The following screen is displayed.

  3. Expand the tree by clicking on the '+' sign. The associated parameters of the form are displayed.

  4. Select the desired parameter by clicking the name. The following screen will be displayed.

  5. Click Enter value to display a text box. Enter the new value for the parameter in the text box.
    You can also select a new value by clicking .

  6. Select the desired new parameter to be updated by clicking it.

  7. Click OK. The new parameter is updated.

TitleResults for “How to create a CRG?”Also Available in