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

how can i get value of list field ex:watchlist users before saving i have to get them in my form

swathikrishanan
Tera Contributor

Get values of watch list

3 REPLIES 3

Alikutty A
Tera Sage

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


swathikrishanan
Tera Contributor

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.


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