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

AVEVA™ Work Tasks

On Click

  • Last UpdatedJun 25, 2024
  • 1 minute read

Use scripts for the On Click event of a Button control, with the Button Type property set to Custom or Navigate To, to accomplish a desired operation.

You can code a script to save the details passed in the current form, on the On Click event of a Button control, of the Button Type "Navigate To". You can then code anther script to retrieve this information in the embedded form.

Note: The Navigate To option uses the SFU.getFormUrl API to navigate to a different form. If the API returns an empty value for any reason, then the On Click event does not get executed and the navigation to another form does not happen.

Example

If you want to submit a form on click of the Register (B1) button with the Button Type property set to Custom, then you can code the script for the On Click event of the Register (B1) button as follows:

// Submit the form.

control.submitForm(event);

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