OnSave Event
Copy
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”);elseappStudioWizard.showErrorMessage(“Failed to save the custom data.”);