Welcome to the Jazz Community Forum
RPE Report with user input to use multiple entries

2 answers


Hi Michael
You can use the below script to split those user inputs separated by a (,).
var str = "12345,12346,12500,"
do
{
var s=str.substring(0,str.search(','));
str=str.substring(str.search(',')+parseInt("1"),str.length);
console.log( "New value of str: "+s)
}
while (str.length!==0);
In RPE you can use RPE variables (external and internal) instead of actual variables in the script. You may have to use an Iteration Element in RPE to implement the above do while loop. The value to the variables can be controlled using assignments and a similar JavaScript like above.
Best Regards
Abish M Zachariah
Comments

thanks for the reply. So i currently have an external variable called