catalog items as a treepicker

Goran WitchDoc
ServiceNow Employee
ServiceNow Employee

I'm wondering if it is possible to perhaps make the lookup field for request item(on call) more like the tree picking. since it would be easier to locate different catalog items if you see the category like.

As it looked now:

catalog items.JPG

And I would like it to look like:

tree.JPG

Any ideas?

6 REPLIES 6

Goran WitchDoc
ServiceNow Employee
ServiceNow Employee

Giving this a bump to see if anyone knows..


Hi Goran,



I recently worked on the tree picker, I hope my experience will help you to resolve this -



Go the sc_cat_item table, find the category field and add tree_picker=true to existing attributes of that field category


Screen Shot 2016-03-22 at 8.52.09 AM.png



Go the table where you are referring the category and add tree_picker=true attribute



Screen Shot 2016-03-22 at 8.53.11 AM.png


The reference pop up will behave as tree picket showing category and catalog item further -



Screen Shot 2016-03-22 at 8.53.57 AM.png



Hopefully it helps




It can be done for categories (as seen above), but not for the items themselves.


It only really works for parent-child type relationships on the same table.



Catalog Items (sc_cat_item) and Category (sc_category) are on different tables, so I don't think this is possible.


That being said, it does work natively for Users & Groups, although that may be because there is a Group Membership table that joins the two together (sys_user_grmember)



You would have to have two fields, the category as a tree picker (solution above) and then a ref qualifier on the catalog item field based on the selected category.



ServiceNow Nerd
ServiceNow Developer MVP 2020-2022
ServiceNow Community MVP 2019-2022

Thanks a lot for the thoughts and info. Now I got an idea of how I might get this to work. Now I only need to time to it as well



//Göran