Skip to Content
0
Former Member
Jun 28, 2016 at 05:53 PM

How to multiselect items in multi combo box ?

1253 Views

I have a chart in which I need to have two values under 'Dimension' be selected and one value under 'Measure' be selected.

Following is the code:

multicombobox1=for dimension

multicombobox2=for measure

for (var i = 0; i < ChartFields.length; i++) {

if (ChartFields[i]["selected"] == true) {

if (ChartFields[i]["type"] == dimension) {

multicombobox1.getselectedItems();

aDimensions.push();

}

else if (ChartFields[i]["type"] == measure) {

multicombobox1.getselectedItems();

aMeasures.push();

}

chartfields is array[] of length 3..

array[0] -> A

array[1] -> B

array[2] -> C


This is selecting only 1 value out of 2 values from dimension from multicombobox1 and 1 value out of 1 from measure for multicombobox 2.

I think array is needed to hold dimension and measure values.. how to do that.. please help


how to select both values of dimension for chart??