Does anyone know if there is a way to set the WebScheduleInfo AppointmentFormPath property via JavaScript?
I need the ability to set the path based on whether or not my appointment is "read-only".
Thanks - JP
You mean the dialog page?
If you do there is a way to set the path to this. If you have the dialogopening event in jscript you can use the function to set the forms path. I forget the function name off the top of me head though. Its something like setDialogUrl(YourURLHere.aspx), or close to that.
Yes, I am referring to the AppointmentAdd.aspx dialog page path.
I was hoping for a method like that, but the only thing I can find regarding the WebScheduleInfo JavaScript API methods is this, and it doesn't list a method similar to what you've mentioned. Do you have the ability to provide the specific method name? And is this a method provided on the ScheduleInfo object in JavaScript?
Regards, JP
I just so happen to have the Javascript code for this on my website. I use it to open a custom dialog page that works perfectly with the information needed by my clients.
Ok in the WebScheduleInfo you should have a client side event called ActivityDialogOpening. When you add that event to your Javascript it will give you some object references.
Now using the oDialog object theres a nice little function there called setContentUrl().
Using this function you can pass the dialog page anything you want in query form and this is the basic setup that you are looking for.
WebScheduleInfo1_ActivityDialogOpening(oScheduleInfo, oEvent, oDialog, oActivity){
oDialog.setContentUrl(YourURLHere.aspx)
}
I use 8.3 but I dont see why this functionality wouldn't be in the 8.1 version of Infragistics.
Bravo! That works nicely. Thank you for the great input.