How to Retrieve Schedule from Calendar Cl |
Post Reply |
Author | |
jetlounge
Newbie Joined: 19 May 2007 Status: Offline Points: 3 |
Post Options
Thanks(0)
Posted: 19 May 2007 at 9:30am |
I am using the control in an Access form. Clicking the Calendar at a certain time I am able to retrieve all properties for that event (time/description, etc) Is there a way to determine the Schedule that was clicked as well? I can't seem to find that property or sample code. |
|
sserge
Moderator Group Joined: 01 December 2004 Status: Offline Points: 1297 |
Post Options
Thanks(0)
|
Something like that:
?
-- WBR, Serge |
|
jetlounge
Newbie Joined: 19 May 2007 Status: Offline Points: 3 |
Post Options
Thanks(0)
|
Thanks for the quick reply
That doesn't work for all situations, but i think it put me on the right track. Is it safe to assume the following:
1) Click an EXISTING event in the calendar use: HitTest.ViewGroup
.MutlipleResources and further properties will get me to the actual SheduleID / Name 2) Click for a NEW event from the calendar control use: CalendarControl.ActiveView.Selection.GroupIndex
from there it looks like I need to cross-ref the array to determine the scheduleID and name
|
|
sserge
Moderator Group Joined: 01 December 2004 Status: Offline Points: 1297 |
Post Options
Thanks(0)
|
Well, no need to complicate. Those are different things.
-- HitTest determines a last click. -- CalendarControl.ActiveView.Selection determines a selection of cells on the control. If you'd like to determine an event by click -- look like it is done in our sample application:
-- WBR, Serge |
|
jetlounge
Newbie Joined: 19 May 2007 Status: Offline Points: 3 |
Post Options
Thanks(0)
|
ok, i am missing something...because that will only provide a schedid when an event exists (not .viewevent is nothing).
But if i also click a cell and want to add a new event, and populate the add form with the schedid that was clicked, the valid of viewevent and viewgroup is nothing.
so i need a way to determine what the schedule is even though an event does not yet exist.
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |