How to dot walk in Ui Action

pratik_kumar
Giga Expert

Hi All,

How can we dot walk the fields of a RITM form, from approval table record .

Like in my instance there is field call"Title" I want to dot walking this field from ui action on approval table.

Regards,

Pratik Kumar

6 REPLIES 6

Hi



As i have mentioned this UI action is on approval table.


find_real_file.png


we are taking ritm number and approver using g_form.


if i am using "current.sysapproval.u_title" , i am not able to click button.



Kindly suggest


Hi Pratik,



Please fetch the 'Title' value in the client side part in your UI Action as below. In your code at line number 10, you can use this.


var ritm = g_form.getReference('sysapproval');


var title= ritm.u_title;



You can also use the callback function for getReference(). As this is the best practice, find section 10.6 GlideForm (g form) - ServiceNow Wiki . But also without the callback function the above code will work, I believe.



I hope this helps.Please mark correct/helpful based on impact