How to use the field_list_dependent attribute?

jesjuar
Tera Guru

I need to modify a watch list field in order to allow to add users from fields in the form. I need the same functionality as in Workflow - Approval User, where the Users field allows you to select various references. That field has the following attribute:

 

field_list_dependent=workflow_version.table

 

This then allows you to reference fields on whichever table is selected in the Properties of the workflow as such: ${request.requested_for.manager}

 

find_real_file.png

 

I need to configure my watch list in the same way but I am not able to reproduce this functionality. I get the tiny icon in the right side but when I click it nothing happens. The Chrome browser console throw the message "Dependent table not found for list", so it seems that the dependent value is incorrect. The following is the attributes in my field (the table is Incident):


slushbucket_ref_no_expand=true,no_sort=true,field_list_selector=sys_user,field_list_dependent=sys_class_name


The default attributes for every watch list are in orange and the attributes added by me are in green. I have tried many variations for the field_list_dependent (remove it too) but nothing works. In ServiceNow wiki there is an article about the dictionary attributes: Dictionary Attributes - ServiceNow Wiki

 

field_list_selector true/falseany glide_listAllows the user to select a field from the dependent table (or current if dependent is not specified).   This is used in some workflow activities.

 

But there is no info about the attribute field_list_dependent.


Any idea? Has anyone tried it before?


Thanks!

1 ACCEPTED SOLUTION

jesjuar
Tera Guru

I've already done it. I had to create a new field of type "Table Name" and point to that field in the attribute "field_list_dependent" in the watch list. This works fine but only if the new field is on the form (It can be hidden with a UI Policy).



I had to modify the table sys_glide_object in order to choose the type "Table Name" when I created the field.




View solution in original post

2 REPLIES 2

jesjuar
Tera Guru

I've already done it. I had to create a new field of type "Table Name" and point to that field in the attribute "field_list_dependent" in the watch list. This works fine but only if the new field is on the form (It can be hidden with a UI Policy).



I had to modify the table sys_glide_object in order to choose the type "Table Name" when I created the field.




Hi,

May I know how you achieved this? I am trying to do the same but not able to.

Thanks