Print Page | Close Window

How can I get the Resource...

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Calendar
Forum Description: Topics Related to Codejock Calendar
URL: http://forum.codejock.com/forum_posts.asp?TID=16166
Printed Date: 06 October 2024 at 3:27pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How can I get the Resource...
Posted By: djldc
Subject: How can I get the Resource...
Date Posted: 10 February 2010 at 9:55am
I am trying to retrieve the schedule name or ID by a double click. Say I have three schedules... I want to be able to automatically get the schedule name or ID of the column that I want to make an appointment for. I see that I can get a Schedule Name, but only if I have an ID. Thanks for any help.

DOn



Replies:
Posted By: phainge
Date Posted: 25 February 2010 at 4:04am
Hi Don,
 
The following VB6 code will return the resource object for the calendar view that was double-clicked, you can then use this to get the schedule(s) assigned to that view via the "ScheduleIDs" property of the returned resource object:
 
CalendarControl.MultipleResources.Item(CalendarControl.ActiveView.Selection.GroupIndex)
 
The above assumes that your calendar control is called "CalendarControl".
 
Peter


-------------
Xtreme SuitePro (ActiveX) 15.1.3
Windows 7 Pro (64bit) SP1
Visual Basic 6.0 SP4



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net