ProApp Designer - Release 14 (Package 32)

OnSave Event

The OnSave event is triggered after saving the item within the wizard or in section/group controls that have their own associated items.

const itemId = appStudioWizard.getItemId();
const itemType = appStudioWizard.getItemType();

// calling a server method to save custom data. Refer to 2.7 Examples on how to call server method.

if (onSuccess)
appStudioWizard.showSuccessMessage(“Data saved successfully”);
else
appStudioWizard.showErrorMessage(“Failed to save the custom data.”);