Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
5549
Custom add appointment Part 2
posted

Hi, after a long while searching for a solution for a custom appointment screen  i have tryed first with
Me.wsInfo.AppointmentFormPath = "Reservation_add.aspx"
but here i have no eventid.

then i found the following code

 

 

 

 

<igsch:WebScheduleInfo ID="wsInfo" runat="server" EnableRecurringActivities="True" EnableSmartCallbacks="false"

EnableAppStyling="True" EnableMultiResourceView="True" OnActivityAdding

="WebScheduleInfo1_ActivityAdding"

 

 

 

 

OnVarianceAdding

="wsInfo_VarianceAdding">

<ClientEvents ActivityDialogOpening="ActivityDialogOpening"

/>

 

 

 

 

</igsch:WebScheduleInfo

>

<

 

 

script type="text/javascript">

 

 

function ActivityDialogOpening(oScheduleInfo, oEvent, oDialog, oActivity)

{

oEvent.cancel =

 

true; //Cancel default form

 

 

var StartTime = oActivity.getStartDateTime(); //Get Activity start time to pass to custom form

 

 

var key = oActivity.getDataKey();

window.showModalDialog(

 

"Reservierung_add.aspx?StartTime=" + StartTime + "&EventID=" + key);

window.location.reload();

}

</

 

 

script>

but the .getdatakey is always null

when i try to get it in my custom screen it is nothing

 

Request.QueryString(

 

"EventID")

how can i pass the current activity id or object to my custom screen?
and when i have it in my screen how can i read i out (server side , code behind)

iam currently use v10 vol2 framework 4.0

 

Parents Reply Children
No Data