If you want them to be coordinated between apps you need to write some code for that
Hi Erik, thanks for your quick reply
did you mean HyperCubes?
just saw an older post regarding that issue which I didn't understand what should be done in order to handle it.
didn't mean to get a 'step-by-step' guide but a high level description of the steps that are required in order to achieve that solution.
We had a similar situation. Here is what we did.
1. Classify one app as primary and another app as secondary.
2. Show the filter component from the primary app that has the common filters
3. add listener to listen to the selection event
4. In the listener, pass the selection values to the secondary app
What you will lose? selection on chart objects from secondary app will not reflect on the primary app. We negotiated with customers to make selections from the filter components and disabled selections on those chcarts
What you gain? No overhead of writing custom filter components and hence no worry about performance.
We have a sample project created in GitHub: https://github.com/CodeAtRoost/Qliksense_Selection_between_apps/blob/master/README.md
Please check it out. Its made using the Help desk Management qvf which is one of the default apps with Qlik. So you will not have any issues testing it out. There is a detailed explanation of the code as well.
If you do not want to disable chart selections, then you have to build custom filter components.
Hi Nivedha, this extension is awesome! But i have a problem.
With number values the code transform to text and he can't filter the other app cause the value is a number.
I tried to add some lines os code that verifies if the value of the array is a number or a string but i dont succeed.
Can u help me?
This is what a wrote:
cacheString=cacheString + '@' + value.fieldName +"~" + value.qSelected;
var m = valArray
m = number(m);
First of all thanks for the quickly reply!
I replaced the "valArray.push(value.qName);" line inside the listener function and at first it worked.
But if i select a text and then i select a number the filter seems dont recognize the number. Or if i select a number and then a text, the filter dont recognize the text. This also happens when i make two text filters in a row.
If i go to code line, change something(can be a comma) and save, the app starts to recognize the filters...
Do u know what could be?
Basically you need to listen to selections in one app, probably using ListObjects. When the contents of the ListObjects change, you need to make the corresponding changes in the other app. You can do that with field.select.
I assume that you only allow selections in one of the apps. If you transfer selections in both directions, it's much more complicated.