You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rescocrm edited this page May 15, 2023
·
8 revisions
[v11.3] Binds or unbinds the handler for creating new appointment after long-pressing on calendar.
Bound handler is called with the TourplanForm object as an argument. The context object contains "start", "end", "entityName" properties and optionally "subject" property.
Arguments
Argument
Type
Description
handler
function(tourplanForm)
The handler function that has to be bound or unbound.
bind
Boolean
Determines whether to bind or unbind the handler.
scope
Object
The scope for handler calls.
This example demonstrate how to bind handler for creating new appointment on tour plan form.
/// Register handler on tourplan form for create new event.MobileCRM.UI.TourplanForm.onCreateNew(function(tourPlanForm){///<param name='tourPlanForm' type='MobileCRM.UI.TourplanForm' />/// The context of tour plan form object contains "start", "end", "entityName" properties and optionally "subject" property.MobileCRM.bridge.alert("Current Date: "+tourPlanForm.view.currentDate+"\n\nOn Create new: "+JSON.stringify(tourPlanForm.context));},true,null);