- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2017 01:41 PM
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?
Thank you,
Laurie
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2017 09:58 AM
Ok Great. So this should work then
- 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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2017 09:20 AM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2017 09:58 AM
Ok Great. So this should work then
- 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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2017 10:15 AM
Thank you, Sanjiv!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2021 03:41 AM
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.