-
Notifications
You must be signed in to change notification settings - Fork 26
MobileCRM.UI.IFrameForm
Maros Kolibas edited this page Nov 29, 2019
·
2 revisions
[v9.0] Represents the iFrame form object.
Property | Type | Description |
---|---|---|
form | MobileCRM.UI.Form | Gets the form hosting the iFrame. |
isDirty | Boolean | [v10.0] Controls whether the form is dirty and requires save, or whether it can be closed. |
options | Object | Carries the custom parameters that can be specified when opening the form using MobileCRM.UI.IFrameForm.show function. |
preventCloseMessage | String | [v9.3] Prevents closing the form if non-empty string is set. No other home-item can be opened and synchronization is not allowed to be started. Provided message is shown when user tries to perform those actions. |
saveBehavior | Number | [v10.0] Controls the behavior of the Save command on this form (0=Default, 1=SaveOnly, 2=SaveAndClose). |
Method | Description |
---|---|
suspendSave | [v10.0] Suspends current "onSave" process and allows performing asynchronous tasks to save the data. |
Function | Description |
---|---|
onSave | [v10.0] Binds or unbinds the handler for saving content of this iFrame. |
preventClose | [v10.0] Sets the warning message that should be shown when user tries to close the form. |
requestObject | [v9.0] Asynchronously requests the IFrameForm object. |
setDirty | [v10.0] Sets the dirty flag which prevents the form being closed. App asks to save the form before saving and if user chooses to save it, it calls the save routine defined in IFrameForm.saveCommand. |
show | Shows a new iFrame form. |
showModal | Shows a new iFrame form in modal window. |