Child pages
  • Using Script to Set Parameter Value

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

When you select an element the Parameters area of the Property Editor displays two columns: Name and Value.

Select the Show scripting options item in the Scripting mode menu on the toolbar or in the Actions main menu.

HTML
<center>
  <img src="/wiki/download/attachments/2097207/scripting_mode_on_toolbar.png"/>
</center>

You can see that the third column Script has appeared in the Parameters area, for example:

HTML
<center>
  <img src="/wiki/download/attachments/2097207/script_column.png"/>
</center>

A script value can either be:

  • not available for a parameter (N/A value)
  • not set (no script)
  • set by user (user script)

To set a script value (when it is available) select the user script item in the Script column. The following dialog appears:

HTML
<center>
  <img src="/wiki/download/attachments/2097207/Using Script to Set Parameter Value_2.png"/>
</center>

Here you can see the variables available from the dataflow and can write your script. Supported languages for the script are languages based on the ECMAScript (Javascript, QtScript).