Retrieving Other Column Values from a Reference Field in a UI Action
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2025 03:44 PM
I need to send a value from a related column of a Reference field to a web service through a UI action.
Here’s the current code I’m working with:
var oCountry = g_form.getReference('country');
gs.log('Object:' + oCountry, 'WSCL');
gs.log('Short name: ' + oCountry.u_short_name, 'WSCL');
In this example, the "country" field is a reference on my form, and "u_short_name" is another field in the Country table. I want to pass the value of u_short_name to a web service.
My question is: Does using g_form.getReference in a UI action work correctly to retrieve values from a Reference field?
0 REPLIES 0