How to dot walk in Ui Action
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-16-2017 09:22 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-16-2017 10:30 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-16-2017 11:02 AM
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