Get reference table field values in Client Side.

Shidhi
Tera Contributor

Hi,

I have the below requirements.

 

server_names is a List Collector variable referring to the cmdb_ci_vmware_instance table. Based on the Servers selected, we need to populate the IP addresses(ip_address) of those Servers into the ip_maint_list variable.

spm_test_name is a List Collector variable referring to the question_choice table. The selected spm test names should populate into the model_handle_list variable.

I have done this using Script Include and onChange client scripts on server_names and spm_test_name respectively(passing selected servers from the client side and getting those IPs at the server side and populating on the client side). But my approach was rejected and I need to do this at Client Script only.


I have been trying to get the display names but couldn't using getDisplayValue(). But getValue is returning sys_ids.

 

 

g_form.getDisplayValue('server_name');

 

 


Please help. Thank you!

2 REPLIES 2

Mani A
Tera Guru

Why your approach was rejected ?  

Shidhi
Tera Contributor

Hi @Mani A 

 

Due to inefficient. Can you suggest any other better approach.

 

Thank you!