Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Get the resource associated with selected item (Read 2323 times)
Aliza
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 13
Joined: Jul 4th, 2007
Get the resource associated with selected item
Aug 19th, 2007 at 11:00am
Print Post  
Hi,
I'm using the calendar with the resource view.
How do I get the resource associated with the selected item? I tried Calendar.Selection.Resource but it is null (Although an item is selected).

Thanks,
Aliza
  
Back to top
 
IP Logged
 
BudMan
YaBB Newbies
*
Offline


Credidi me felem vidisse

Posts: 45
Joined: Jul 14th, 2007
Re: Get the resource associated with selected item
Reply #1 - Aug 19th, 2007 at 12:24pm
Print Post  
You have to use the Calendar's ItemSelection property. For example, to retreive the Name of the selected item's (first assigned) Resource you would write this:

calendar.ItemSelection.Items(0).Resources(0).Name
  
Back to top
 
IP Logged
 
Aliza
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 13
Joined: Jul 4th, 2007
Re: Get the resource associated with selected item
Reply #2 - Aug 19th, 2007 at 12:52pm
Print Post  
I'll try that. Thanks!
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint