Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
polleyarijit1
Contributor
Contributor

Help on Qlik Mashup

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?

2 Replies
anat
Master
Master

u can try document chaining to pass field selection from one app to another app.

Document Chaining in Qlik Sense - Qlik Community - 1495402

 

polleyarijit1
Contributor
Contributor
Author

Hi @anat , thanks but I'm trying to do something within mashup.