Setting Tree picker for a reference variable doesnt work properly in the service portal page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-19-2017 07:19 AM
HI,
I created a catalog item variable of reference type, which reference to one of the custom tables I have. I set the Tree Picker for variable by setting the variable attribute with tree_picker=true. However, it is working fine in service catalog homepage. But, when viewed from the service portal page the entries are still listed out as drop down option and not in the tree hierarchy.
On Portal page,
On catalog homepage,
Please let me know how to get over this issue.
Thanks,
Ajay Pradeep
- 10,596 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-07-2022 02:04 PM
In the client controller of the widget, there's some code that locates 'departments' control on the page and sets its value with the selected values. On service catalog example he gave this name to his List Collector variable, so this is how the widget puts the selections into it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Wednesday
I did't found any update set from the url you provided above can you please once check your github that is that update set is is over there or not.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Wednesday
The place he put it long ago was Servicenow Share, but they changed their links since then. The correct spot is at link below. In my comments above I gave the link, but here it is again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-09-2018 01:23 AM
Hello Larstange,
I have a few questions. I would like to implement a customized tree picker.
* What is the data relation in your screenshot example between Finance and Biling department ?
* Is it possible to render the tree picker dynamic ?
For example according to on reference user i should be able to display a tree-picker with applications accesses of that user and the parent application of those accesses :
Application 1
Application profiles 1a - Application profiles 1b
Application 2
Application profiles 2a
Application 3
Application profiles 3a - Application profiles 3b - Application profiles 3c
Best regards.
Rémi.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-12-2018 06:19 AM
Hi
You feed the tree picker with a JSON object contain parents and their childs. To it is really up to you do generate the appropriate JSON. If you want it do be dynamic you just have to account for this in your code.
In my example the Billing department in the cmn_department table has the "finance" department in its "parent" field and my code uses this to generate the tree object
