Tree picker attribute for Slushbucket

Aashish_D
Tera Contributor

Hello all,

I have a requirement where I have a parent child relationship in a table (say 'xyz' table) and I want to give a list type field in another table referencing to this xyz table where user can multi-select the records. Is there a way where we can give a tree_picker attribute to list slush-bucket or else we can give a checkbox in in tree_picker view. This will make to UX so much better where user can directly choose multiple records and can also see the hierarchy at the same time. 

Please find the attached file which shows exactly how I want the tree_picker to look like.

 

Thanks.

4 REPLIES 4

Ankur Bawiskar
Tera Patron
Tera Patron

@Aashish_D 

in the reference field dictionary add this in attributes

tree_picker=true

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Aashish_D
Tera Contributor

@Ankur Bawiskar 

In tree_picker attribute it doesn't show check-boxes.

 

 

@Aashish_D 

it won't show, that's OOB behavior

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Gurpreet07
Mega Sage

Hi, There's an alternative way but may not suite your requirement. Anyway check if it works for you or not . Creating a path / hierarchy field on the parent child relationship table. There should a one time fix script to update existing data and a business rule to update path ( Root > parent 1 > parent 2 > child) on each update of parent field. Then this field can be added to sys_ref_list view and it will be visible in additional information when anyone selects any item in the slush bucket. If you can check the display true for this field then it will be visible in the main list as well.