Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3575

Re: use multiple dimension without adding more same data source in design studio

$
0
0

Hi Bogdan Popescu

 

Thanks for replying. My hope of using only one data source was almost dead. It was very much embarrassing to duplicate my data sources to feed different components every time.

 

I tried your points and ended up as follows...

 

g_1.png

I have only one data source here and the initial view is something like this....

g_2.png

This is the coding for Customer --

 

DS_1.moveDimensionToRows("Customer",0);
CHART_1.setDataSource(DS_1);
CHART_1.setDataSelection({  "Customer": ["0000000002", "0000000001", "0000000003" , "0000000011"]});

This is the coding for Vendor--


DS_1.moveDimensionToRows("Vendor",0);
CHART_1.setDataSource(DS_1);
CHART_1.setDataSelection({  "Vendor": ["0000100006", "0000100032", "0000100033" , "0000100006"]});

This scenario can fulfill my requirement only if I know my result set. Now my question is

 

1. What if I need to show all members of the dimension customer or vendor ?


Viewing all articles
Browse latest Browse all 3575


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>