Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi
i am using mashup approach which have 2 Dashboards Charts in single Page, and multiple common Selection bar like Year,Quarter and Months etc.
If i select and Year and Quarter and Months from one Dashboard that common selection should be automatic apply to second Dashboard also.
i am looking for Mashup Code (JQuery code). i am trying below code for same but that is not working
var app = qlik.openApp('2280f92d-94e1-46a0-ab92-3dff63f5c87d', config); // my first APP.
var selState = app.selectionState( );
var listener = function() {
MyApp.clearAll(); // Second Application
var selFields = selState.selections;
if (selFields!=null){
$.each(selFields, function(key, value) {
var valArray=[];
$.each(value.selectedValues, function(key,value){
//valArray.push(value.qName);
console.log(value.qName);
isNaN(value.qName) ? valArray.push(value.qName):valArray.push(Number(value.qName));
})
MyApp.field(value.fieldName).selectValues(valArray);
});
}
};
selState.OnData.bind( listener );
Please let me know how to implement this.
Can anyone help me in this issue ?