Tree Picker group selection
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-15-2008 12:34 AM
I have a hierarchy of groups, done with some inactive parents groups attached to the active child
In the example attached, "Business process owners" is an inactive parent group, and all the "EM******" are the active children.
I would like to be able to select only the active groups, or the second level of hierarchy (the same for me) in the tree_picker selection.
I didn't find anything about it here:
http://wiki.service-now.com/index.php?title=Tree_Picker
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-16-2008 12:46 AM
Anyone?
Or even a workaround... It is really not user friendly what I did, and I have no idea how do it better.
Thanks:rolleyes:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-16-2008 06:18 AM
I am not sure if this is what you are looking for, but you could add a ref qualifier on the field, so that it only returns those with the ref you choose.
An example would be the assignment group on incident. It uses the tree picker attribute, but also the following ref qualifier: type=null^active=true
You can log in to the demo instance to see the example.
Wiki article on Reference_Qualifiers
Please post back if this doesnt help...
Ian

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-16-2008 06:23 AM
The only way to remove items from a reference field is to specify a reference qualifier value (found on the field's dictionary entry) on the field. Out of the box, the 'Assignment Group' field excludes all groups that have any sort of 'type' value (which means that no 'catalog' type of groups show up).
While you can exclude items from a reference field using reference qualifiers, the problem with this in using a heirarchy in the tree picker is that when you filter out a parent item (when looking at the tree picker only), the child items aren't visible even if they should be there.
I think you've got a couple of options. The first would be simply not to filter out parents with active children. If using the tree picker on a field, the parent must be visible in order to make the children visible. The second option would be to simply not use the tree-picker attribute on this field. You can remove the attribute from the field's dictionary entry. That way, when a user clicked the magnifying glass they would be presented with a list of available options regardless of their position in the heirarchy. Unless you've got a really good reason to use the tree picker (like having a huge number of groups), this is probably the direction I would choose most often.
If you choose the second option, you could make use of the 'active' checkbox to filter out items in the list by modifying the reference qualifier on the dictionary entry to be the following:
type=null^active=true
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-16-2008 11:55 PM
Thanks.
But, yes, there are more than 60 groups, and the tree picker view was really perfect.
With the normal view, navigate in the 60 group without the "show matching" functionality is really time consuming (even with the filter on the top... it is slow).
Maybe I will let it like that (tree picker), and create an alert on this field when an inactive group is selected (onChange).