how can i get value of list field ex:watchlist users before saving i have to get them in my form
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-24-2017 05:43 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-24-2017 05:46 AM
Hi Sandeep,
You can access it directly using current.watch_list, It will give you a comma separated list of sys_id's (In case of watch list, it will be user sys_id's)
Thanks
Please Hit like, Helpful or Correct depending on the impact of the response
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-24-2017 06:06 AM
Hi Alikutty,
actually here,i give some names in watchlist and I click on ui action ,with out saving the form, so what is happening is ,the name which I give in watchlist are getting lost so for this in that UI action I made it client callable and I wrote g_form.getValue("watchlist");
And iam not sure how to get value ,in that case current.watchlist works or not.
Regards,
SANDEEP.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-24-2017 06:11 AM
Hi Sandeep,
The field name is watch_list
So you can either user g_form.getValue("watch_list") if you running the UI Action on client side
Or You can use current.watch_list
Why are you accessing this value? You can do a current.update() to save the values on database?
Thanks
Please Hit like, Helpful or Correct depending on the impact of the response