The Script dialog for each form lets you create and maintain JavaScript functions that apply to a form. Using the Script dialog is the best-practice option for maintaining custom JavaScript functions for a form. The functions that you save in the dialog apply only to the form that you are editing. To use the Script dialog for a form, you require access rights to edit the form.
Follow these steps:
The form attributes appear, and the Script button activates. The Script button appears on the toolbar with the Localize, Save, Restore, and other buttons.
The Script dialog appears and displays the custom JavaScript functions already specified for the form, if any. You can enter new JavaScript functions before or after any existing ones.
Note: To view a template for a function, click Show Help on the Script dialog. The template shows the product-specific implementation of a standard JavaScript function.
ca_fd.js.function-name
An example follows:
ca_fd.js.calculateCostQty()
Typically, you specify a custom JavaScript function in one of the following:
You have used the Script dialog to maintain JavaScript functions that apply to a form.
|
Copyright © 2013 CA.
All rights reserved.
|
|