Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Resourceview and filtering (Read 4004 times)
elwin68
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 16
Joined: Feb 24th, 2010
Resourceview and filtering
Apr 13th, 2010 at 8:52am
Print Post  
Hello,

I have 2 questions about the resourceview.

1.
Is it possible to disable the scrollbar which is shown at the bottom of the resourceview?

2.
In a resourceview all collections (contacts, locations, resources, tasks) are used.
I have 2 types of resources which will be added to the collection Resources. When I group by resources all types are shown.
Is it possible to use a sort of filter with the  collection Resources to show the resources separately.

For example:
Resource 1 - machine
Resource 2 - machine
Resource 3 - person
Resource 4 - person

At this moment all 4 resources are shown in the resourceview. It would be nice if:
- only show the machines in a resourceview
- only show the persons in a resourceview.

Is this possible?

Thanks in advance.
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Resourceview and filtering
Reply #1 - Apr 13th, 2010 at 11:45am
Print Post  
1. Set Calendar.HScrollerVisible to Disabled.

2. For example, if you want to display only specific resources, clear the Calendar.Resources collection, traverse all resources in the schedule and add to the Calendar.Resources collection only the resources you want to be visible. Of course it is up to you to identify whether a resource represents a machine or a person. You can, for example, use the Tag property of the Resource for this purpose or use custom resources.

Regards,
Meppy
  
Back to top
 
IP Logged
 
elwin68
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 16
Joined: Feb 24th, 2010
Re: Resourceview and filtering
Reply #2 - Apr 15th, 2010 at 8:11am
Print Post  
My resources exist of 2 types, persons and machines. The difference is in the Tag property of the resource.
I have 2 buttons in my resource view, 'Show Persons' and 'Show Machines'.

After I have added all tasks with the linked resources the resource view is shown.
Now I want to show only the persons when I click the button 'Show Persons' and only show the machines when I click the button 'Show machines'.

The first thought was setting a filter on the tag-property. Unfortunally this is not possible.

In your answer you give a solution to delete some resources to show the other ones.
I think there will be a problem when clicking the buttons after eachother.
Resources must be deleted and resources must be added.
In another forum-entry you told me to make items effectively the same object to show the resource just 1 time and to show the tasks in the right way.

What is the best way to do this?

Thanks in advance.

  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Resourceview and filtering
Reply #3 - Apr 15th, 2010 at 8:33am
Print Post  
The idea is that you initialize the schedule once by creating the items and resources, and establishing the relations between them, then add them to the Schedule.Items and Schedule.Resources collections respectively.

Then you select the resources to be displayed in the grouped Calendar by adding them to the Calendar.Resources collection. If at some point you want to change the visible resources, you simply modify the contents of the Calendar.Resources collection accordingly. The data in the Schedule remains intact.

You already load the data successfully and populate your schedule object. What you need to do is, add resources to the Calendar.Resources collection (based on certain criteria) to make them visible and remove resources from this collection if you don't want them to be visible anymore.

Let me know if this helps.

Regards,
Meppy
  
Back to top
 
IP Logged
 
elwin68
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 16
Joined: Feb 24th, 2010
Re: Resourceview and filtering
Reply #4 - Apr 15th, 2010 at 10:21am
Print Post  
Now I understand how it's working.

Everything is ok now.

Thanks for the good explanation.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint