Get reference table field values in Client Side.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2024 12:05 PM
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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2024 12:18 PM
Why your approach was rejected ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2024 12:04 AM