Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

IBM RPE prompting values for multiple selection

Hi team,

Currently, I having a requirement that to make a combo-box for multiple selection values on report template using RPE (Rational Publishing Engine) . By  using the below javascript in RPE, I can create a combo-box with options for select, but only single selection. the javascript is from the site: https://rpeactual.com/2011/12/05/prompting-for-variable-values/
The javascript is:
var options = new java.util.ArrayList();
options.add( "Project A" );
options.add( "Project X" );
options.add( "Project Z" );
 
// 1st argument is parent component - use null
// 2nd argument is the label of the selection
// 3rd argument is the dialog's title
// 4th argument is the message type
// 5th argument is the icon  - if null a default icon matching the message type will be used
// 6th is the list of values
// 7th argument is the initial value to select from the list
var input = javax.swing.JOptionPane.showInputDialog( null , 'Select the the project to use: ', ' RPE Variable Prompt',  javax.swing.JOptionPane.QUESTION_MESSAGE, null , options.toArray(), "Project X" );
 
// debug message
java.lang.System.out.println( "You entered: " + input);
 
// return the value provided by the user
input;

I want to ask how to make it multiple selection, can you please help me on this?

Thank you,
Best regards,
Anh Do

0 votes


Be the first one to answer this question!

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 7,495

Question asked: Dec 15 '16, 10:36 p.m.

Question was seen: 1,483 times

Last updated: Dec 15 '16, 10:36 p.m.

Confirmation Cancel Confirm