Ok I have figure out how to make custom provider. Now my problem is :
How to sync between WebScheduleInfo control in main window with customize opened AddActivity page.
How to pass selected date from WebXXXView to new AddActivity so it filled start date with selected date ? Or if what I select and edit activity in WebXXXView, how to pass parameter to popup AddActivity page ?
What should I do after I click either SAVE and CANCEL btn in activity page to sync back to the caller which is contain WebDayView and WebScheduleInfo ? ( what client script should I called or anything else )
Tanx
My question is how to get seleted DATE and TIME from WebDayView either when user click to add activity OR edit currently activity and pass it by URL. Is this possible ?
Second : After user done in AddActivity page, how to tell WebDayView about change happened in AddActivity ( insert or edit ) and sync back to WebDayView | WebScheduleInfo ?
Tanx hope this explain my problem clearly
Hi
You can get Selected Date and Time from Webday View Like this.
1.Add Event
WebScheduleInfo1_ActivityDialogOpening(oScheduleInfo, oEvent, oDialog, oActivity)
2.you can Get Selected Date and Time Like this
var StartTime = oActivity.getStartDateTime();
3.When you are Editing you can get the Save Event Id As
var EventID = oActivity.getDataKey();
so in javascript you can check id Eventid !=null then appointement already booked so it will open Dialog in Edit mode.
Else if null it is create Mode.
4.On Close Dialog you can pass a Mode in url to Identify whether it is in Edit or Create Mode.
If Edit update the Data and Rebind Day view Control.
Hope this will help.
Thanks
Yashkant