Wizard

The Wizard object can be accessed in scripts using the keyword AppStudioWizard, which provides all the APIs needed to interact with the various controls within the Wizard.

getItemId

Get itemId of the item loaded in the Wizard.
var itemId = appStudioWizard.getItemId()

getItemType

Get itemType of the item loaded in the Wizard.
var itemTypeName = appStudioWizard.getItemType()

getItemConfigId

Get itemConfigId of the item loaded in the Wizard.
var itemConfigId = appStudioWizard.getItemConfigId()

isItemNew

Returns true if the item in the Wizard is never saved to server.
var isItemNew = appStudioWizard.isItemNew()

isItemEditable

Returns true if the item in the Wizard is editable (in edit mode).
var isItemEditable = appStudioWizard.isItemEditable()

Section and Group controls on a page can have their own ItemType context. The following API returns true if the associated item of the layout control (Section or Group) is editable (i.e., the page is in edit mode).
var isLayoutEditable = appStudioWizard.isItemEditable(layoutControlName)

isControlUpdated

Checks control with the given name is updated (has unsaved changes)
var isControlUpdated = appStudioWizard.isControlUpdated(controlName)

reload

Reload the entire wizard with the latest item details from the server, discarding all local changes.
appStudioWizard.reload();

reloadControl

Reload a specific collection control’s data from the server, discarding all local changes.
appStudioWizard.reloadControl(controlName);

showDialogFlyout

Shows the flyout given the flyout name.
appStudioWizard.showDialogFlyout(pageDialogName);

showInsertFlyout

Shows the associated InsertItem flyout on the collection controls
appStudioWizard.showInsertFlyout(controlName);

showWorkflowActivityFlyout

Shows WorkflowActivity flyout given the activityId, workflowId, itemId and tableControlName.
appStudioWizard.showWorkflowActivityFlyout(activityId, workflowId, itemId, tableControlName);

downloadFile

Downloads a file from vault server given the fileld and fileName.
appStudioWizard.downloadFile(fileId, fileName);