The Zurich release has arrived! Interested in new features and functionalities? Click here for more

How to get value from g:ui_reference and pass to script include parameter.

Dhanakoddi2
Tera Contributor

Hello Team,

 

I have a requirement to show all level child categories of selected knowledge base from the UI page.

 

There is a script include to show all child categories. But now I need to pass the Knowledge base selected in the UI page to load the child list.

 

Could anyone tell how to pass g:ui_reference value to script include parameter which is called in another g:ui_reference?

 

Thanks!

 

6 REPLIES 6

Hi @Dhanakoddi2,

Glad to see that my solution or knowledge helped you in some context.

 

But in order to achieve this completely, I need to have a look and need more details on fields and tables and some screenshots will be useful, if possible to look into it further and provide the complete solution.

 

If you find this information/knowledge/solution helpful, Please don't forget to mark my solution and reply as helpful and accepted.

 

Thanks 🙂

Aakash Garg

ServiceNow Developer

Hello Aakash,

Thanks for helping me on this.

Please see the details below.

Knowledge Category Form and it's levels.

Dhanakoddi2_0-1711956706130.png

 

Table:

Knowledge Category[kb_category]

Fields:

Label [label] - String field. Need to show in the list.

Parent ID[parent_id] - Document Field

Dhanakoddi2_1-1711957088674.png

Dhanakoddi2_2-1711957149864.png

 

Please let me know if you need any other details.