Question
Coforge
GB
Last activity: 18 Jun 2019 4:40 EDT
Select multiple values in an element using RDA Open Span
Hi,
Actually I am creating an automation in which we need to select 2 values in a multi select control in the Application. When it was inspected, I could see it being inspected with a combo box icon in RDA tool. But I don't see any method for it using which I could select more than 1 value. Please suggest.
Regards,
Neha Bisht
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Pegasystems Inc.
US
Without seeing the specific control, I don't really have a suggestion. You may need to create a JavaScript function to perform a multi-select if you are not finding the proper methods available.
Pegasystems Inc.
US
Is this a Windows or Web control?
A Windows ComboBox does not support multi-select natively. A ListBox does, however. A little more information would be required to help if it is Windows.
If it is Web Thomas's suggestion should be the way to go.
CollabPartnerz
IN
We have to create a javascript function to achieve this requirement
Tech Mahindra
IN
Hi Raveendra.,
Could you please help us to achieve the multiple selection in dropdown using javascript??
CollabPartnerz
IN
Hi,
below link might help you.
https://collaborate.pega.com/question/rda-select-element-create-container-control-simple-example
-
Alpesh Patel
Coforge
GB
Hi,
I am able to select two values in a control using JavaScript. Thanks a lot Thomas and Jeff.
Cognizant
AU
Hi Neha, I have a similar issue can you please help me out with the script.
Coforge
GB
Hi Srilekha,
I did it using the below script -
var color, i, j,
values = ["Private", "Public"],
options = document.getElementById("statusCodes").options;
for ( i = 0; i < values.length; i++ )
{
for ( j = 0, color = values[i]; j < options.length; j++ )
{
options[j].selected = options[j].selected || color === options[j].text;
}
}