Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Can a Tree Picker be enabled for a Custom Table or Field?

jpeters117
Kilo Contributor

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!

1 ACCEPTED SOLUTION

I went back and checked an instance to confirm and u_parent works in that case.


View solution in original post

7 REPLIES 7

Brad Tilton
ServiceNow Employee

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


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?


I went back and checked an instance to confirm and u_parent works in that case.


Someone was definitely forward thinking on that!