Dynamic Tree Picker User Options

MGanon
Tera Guru

Can I allow users to select the tree picker option? Using incident assignment group as my example, some users want the tree picker while others want the single list? How do I provide the option to choose?

1 ACCEPTED SOLUTION

Munender Singh
Mega Sage

Hi,

As this is attribute at dictionary level so you can't set that dynamically based on user.But,can go with another custom approach

1.Create a new duplicate field with same label as incident assignment group

2.set the dictionary attribute as tree_picker=false(if original field value is true).

3.put a READ ACL on these fields based on role which one should be visible

Regards,

Munender

View solution in original post

7 REPLIES 7

Thank you for the additional great direction. What are the best practices to keep the assignment_group and custom u_assignement_group fields synchronized? 

I assume to use a UI Action or Business Rule to ensure the data matches in the database. What about filters? Would we need to ensure the same filter on both fields or can the custom u_assignment_group field be set to always display only whatever values are available for the oob assignment_group field?

Hi,

Please note few things while designing this out:

1.The new created field should have same reference qualifiers or dictionary overrides as of the OOB field.

2.As all the execution rules are running on OOB assignment group field so,it is better to create a Business rule which would copy the data from new assignment group field to the OOB.

here goes the code 

Type:before

condition: u_assignment_group(custom field) is changed and u_assignment_group is not empty

script: current.u_assignment_group == current.assignment_group

 

Regards,

Munender

AbhishekGardade
Giga Sage

Hello MGanon,

1. Be default Assignment group has tree-picker option. So you don't need to configure it.

2. If you want to have a Single list then you need configure dictionary field of Assignment Group as below: 

3. By setting tree_picker= false: you can see single list

find_real_file.png

4. You can't configure both option for same field

Thanks,

Abhishek Gardade

Thank you,
Abhishek Gardade