Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Resource View Drag and Drop error (Read 2557 times)
willywig
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 5
Joined: Mar 17th, 2008
Resource View Drag and Drop error
Mar 17th, 2008 at 8:18pm
Print Post  
calendar.GetResourceAt(client).Id()

Using the above on the ResourceView throws an error....

Referenced object 'GetResourceAt' has a value of 'Nothing'.

When in TimeableView this error is not thrown.
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Resource View Drag and Drop error
Reply #1 - Mar 18th, 2008 at 7:24am
Print Post  
There is a chance that the GerResource method would return null. For example, when the specified point does not lie over any resource or when you are not performing grouping by resource. If you are grouping by Contacts, Locations or Tasks, or not grouping at all, this method will always return null.

Meppy
  
Back to top
 
IP Logged
 
willywig
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 5
Joined: Mar 17th, 2008
Re: Resource View Drag and Drop error
Reply #2 - Mar 18th, 2008 at 2:53pm
Print Post  
I am grouping by Contacts,  and using the GetContactAT worked... It is strange that the Getresource at works on the Timetable.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Resource View Drag and Drop error
Reply #3 - Mar 18th, 2008 at 4:00pm
Print Post  
I think that was a bug that our developers have recently fixed. The correct method to use is GetContactAt, and in the next version GetResourceAt won't return contacts even in timetable view.

Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint