How to I make RMP to auto-select all values in a list?
I need to sent email to creator and automatically cc to a group of predefined users. This predefined users (number varies from 1 person - 6 persons) are based on the location which the creator will select.
When creator create a form and select a location, I managed to get the list of predefined users (eg: 2 names) from collection and put them into a list field call PlantManagers. (This field is hidden from user)
Problem is that once creator submit the form (which trigger the process), the PlantManagers field is not save in the form. When I check in the Process report for this record, this field name is not found in "Initial Parameters" tab and "Computed Parameters" tab.
I tested and found that the multiple values are only saved if the creator manually select all the values.
Please advice. thanks
--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "Fujitsu RunMyProcess Developer Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supportforum+unsubscribe@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at https://groups.google.com/a/runmyprocess.com/group/supportforum/.
To view this discussion on the web visit https://groups.google.com/a/runmyprocess.com/d/msgid/supportforum/00fa00c8-4119-4693-8749-eac823e0f8a6%40runmyprocess.com.
Good day,
As requested, attached is the field configurations
--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "Fujitsu RunMyProcess Developer Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supportforum+unsubscribe@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at https://groups.google.com/a/runmyprocess.com/group/supportforum/.
To view this discussion on the web visit https://groups.google.com/a/runmyprocess.com/d/msgid/supportforum/2fb155d8-daff-43ee-ad51-22173aac57c0%40runmyprocess.com.
But thanks to your sample code, I managed to find more info from RMP forum. I finally used the below RMPapplication.set to autoselect the values. It is now working as per I wanted and the values are saved into the process.
//-----auto select all the retrieved values
var my_selection = [];
for(i=0;i<result.length;i++)
{
my_selection.push(result[i].plant_manager);
}
RMPApplication.set("plant_manager", my_selection);
You can close this ticket. Thanks