Record Producer - How to Map Email Variable with Watch List

Laurie Marlowe1
Kilo Sage

Hello,

I have a requirement on a record producer to have a Watch List and also add Email Address (to Watch List).   I used a List Collector variable mapped to Watch List.   I added an Email variable, but I cannot figure out how to add it to the List Collector list in order to have it go to the Watch List on the form.   I tried using the variable type Macro with Label, and macro_watch_list, but that did not solve the problem of how to get the email address into the Watch List.  

Is this doable?

Capture.JPG

Thank you,

Laurie

1 ACCEPTED SOLUTION

Ok Great. So this should work then



  1. current.watch_list = producer.add_email+','+producer.your_list_collector_var.toString();


or current.watch_list = current.watch_list+','+producer.add_email;



Please mark this response as correct or helpful if it assisted you with your question.

View solution in original post

13 REPLIES 13

I tried the code you suggested.   The name in the add_email variable is added to the watch list, but all the other names selected in the list collector variable are removed.   I need to concatenate the add_email information to the list collector information, and have all appear in the watch list.



I have been trying to use "push", but the code isn't working:



current.watch_list.push(producer.add_email);



Thanks,



Laurie


Ok Great. So this should work then



  1. current.watch_list = producer.add_email+','+producer.your_list_collector_var.toString();


or current.watch_list = current.watch_list+','+producer.add_email;



Please mark this response as correct or helpful if it assisted you with your question.

Thank you, Sanjiv!


Vijaykumar2
Mega Expert

Please select the users in the list collector and use the below code to add those selected users in the watch_list through the record producer.

 

Code : current.watch_list = current.watch_list+','+producer.(name of list collector variable);

 

Thanks,

Vijaykumar

Mindtree.