-
Notifications
You must be signed in to change notification settings - Fork 24
MobileCRM.UI.RoutePlan
rescocrm edited this page Sep 27, 2021
·
1 revision
[v14.2] Represents the Javascript equivalent view of RoutePlan form object.
| Property | Type | Description |
|---|---|---|
| myRoute | DynamicEntity[] | A list of route entities. |
| completedEntities | DynamicEntity[] | A list of completed entities that are about to be removed from route plan. |
| routeEntityName | String | Logical name of the route visit entity. |
| routeDay | Date | Currently selected route day. |
| isDirty | Boolean | Controls whether the form is dirty and requires save, or whether it can be closed. |
| Method | Description |
|---|---|
| suspendPostSave | Suspends current "onPostSave" operations and allows performing another asynchronous tasks before the form is closed. |
| suspendSave | Suspends current "onSave" process and allows performing asynchronous tasks to save the data. |
| Function | Description |
|---|---|
| onItemAdded | Binds or unbinds the handler for "Item Added" event. |
| onItemCompleted | Binds or unbinds the handler for "Item Completed" event. |
| onItemPostSave | Binds or unbinds the handler for further actions on saved visit entity. |
| onItemRemoved | Binds or unbinds the handler for "Item Removed" event. |
| onItemSave | Binds or unbinds the handler for validating single visit entity save. |
| onPostSave | Binds or unbinds the handler for further actions on saved route. |
| onRouteReloaded | Binds or unbinds the handler called after route is reloaded. |
| onSave | Binds or unbinds the handler for route save validation. |
| requestObject | Requests the managed RoutePlan object. |