on 06-28-2016 6:53 PM
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??
HI Abhi,
You can store the values in the array in the form of objects then you can able to see the values.
I think values are over riding in the array.
I am not sure.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Abhi,
For MultiComboBox items set a key as shown below
<MultiComboBox id="multiCombo" width="500px"
items="{
path: '/ProductCollection',
sorter: { path: 'Name' }
}">
<core:Item key="{Name}" text="{Name}" />
</MultiComboBox>
so when u fetch selectedKeys using the below code in controller
this.getView().byId("multiCombo").getSelectedKeys();
you will get list of selected dimensions.
Regards
Laxmi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
check this example
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.