Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I have used three different apps in my mashup file (App,App1,App2).
Using the below formula, I am able to pass the selection/filter made on any object from App to App1 and App2.
var selState = app.selectionState( );
var listener = function() {
app1.clearAll();
var selFields = selState.selections;
if (selFields!=null){
$.each(selFields, function(key, value) {
var valArray=[];
$.each(value.selectedValues, function(key,value){
isNaN(value.qName) ? valArray.push(value.qName):valArray.push(Number(value.qName));
})
app1.field(value.fieldName).selectValues(valArray);
});
}
};
selState.OnData.bind( listener );
However using the same code, I am not able to pass the selection made on App1 and App2 to the Primary app i.e. App.
Is this default behavior or I need to something else?
u can try document chaining to pass field selection from one app to another app.
Document Chaining in Qlik Sense - Qlik Community - 1495402
Hi @anat , thanks but I'm trying to do something within mashup.