Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


When using the fieldsOnSave or onSave commands, you can choose to either display a message or to create a new record once the save has completed. The code will only be called after a record has been saved. Any code defined within fieldsOnDefault, getDefaultValueOf, fieldsOnPresave, or onPresave is executed before the code is run.

The fieldsOnSave or onSave commands include the following:

  • window.location = "melt://showAlert:/message to display". Displays a message prompting users to select OK to close, for example, a window.
  • window.location = "melt://createNew:/MODULEID". Creates a new record in the module ID specified. If required, then you can use this command in conjunction with onCancel to prevent users from cancelling record creation.

...