- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-12-2014 06:32 AM
I have a client that would like to make a custom table (Conference endpoints) searchable with a Tree Picker. Using the tree_picker attribute on the u_parent field does not seem to work. The u_parent points to itself similar to the location table. Can the tree picker only work on an OOB table using the Parent field? I am having difficulty finding the code that points to the parent field.
Thank you!
Solved! Go to Solution.
- Labels:
-
Service Mapping

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-12-2014 10:22 AM
I went back and checked an instance to confirm and u_parent works in that case.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-12-2014 07:39 AM
The tree_picker=true attribute needs to be added to the reference field that is referencing your custom table. So if you have a field called Conference endpoints that is referencing your custom table you would add the attribute to that field rather than the parent field on your new table.
http://wiki.servicenow.com/index.php?title=Tree_Picker
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-12-2014 10:03 AM
But doesn't tree_picker=true require that a field called Parent exist on a table? If so, the closest you can get on a custom table is u_parent. Will that still work for tree_picker attribute?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-12-2014 10:22 AM
I went back and checked an instance to confirm and u_parent works in that case.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-12-2014 10:27 AM
Someone was definitely forward thinking on that!