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

Fetching the Reference field's other column values in a UI ACTION

amit_bhatia
Kilo Explorer

Hello Everyone,

 

I need to pass on a Reference field's another column value to some web service from a UI action.

 

var oCountry = g_form.getReference('country');

gs.log('Object:' || oCountry,'WSCL');

gs.log('Shot name' || oCountry.u_short_name,'WSCL');

 

country is a reference field on my form, u_short_name is another column on country table. I am looking to post this value to a web service. This code is under a UI action.

 

Does getting the ref. with g_form works in UI action?

 

Please help!

5 REPLIES 5

yup... it should work