Hi,
I am writing onselect( ) in SAC and struggling to get it work due to the data types.
I have two Charts (Chart 1 & Chart 2) in SAC Analytical application.
Chart 1 displays data by Region and Chart 2 displays data by Product.
Requirement is to connect Chart 2 with Chart 1.On selecting a region in Chart 1 expectation is Chart 2 should be filtered to display only products in selected region.
Products data is like P456,P457,Q345,Q763….. (Char)
Using onselect function on chart 1 wrone the below simple script to test the functionality
Chart_2.getDataSource().removeDimensionFilter("product");
var sel = Chart_1.getSelections();
Chart_2.getDataSource().setDimensionFilter("product",sel);
If I hard code the product value in the script its working…
Chart_2.getDataSource().removeDimensionFilter("product");
var sel = Chart_1.getSelections();
Chart_2.getDataSource().setDimensionFilter("product",Q763);
Please advise,I think its probably due to passing product dimension value to the variable created “sel”