Discussion board where members can learn more about Integration, Extensions and API’s for Qlik Sense.
My Code:
Hi all,
I found a solution to my question for anyone that might be having the same issue.
First, there are a couple different functional listeners that I have found for the properties panel. They are show, change, add, and remove. All of these can be used within a component for the properties panel, just add it in as an additional field.
However I am still looking for an order change listener for the array component. I need it to fire whenever the user moves or changes the order of the items array in the properties panel. If anyone has any suggestions it would be greatly appreciated.
Second, the solution for making adding and removing items from an array component in the properties panel is to access it through the backend api in the paint method. Whenever changes are made I have my extension throw a flag and repaint. Here is my code within the paint method:
//----------------------------------------------//
//----------------------------------------------//
When you call the backend api you can manipulate the reply object however you need to as if it was an object that you created. From there you can use the setProperties() method to apply all of the changes that you made. You do need to assign "this" to a new variable though in order to apply the patches to the app.
I hope this helps anyone who might need it!
Hi all,
I found a solution to my question for anyone that might be having the same issue.
First, there are a couple different functional listeners that I have found for the properties panel. They are show, change, add, and remove. All of these can be used within a component for the properties panel, just add it in as an additional field.
However I am still looking for an order change listener for the array component. I need it to fire whenever the user moves or changes the order of the items array in the properties panel. If anyone has any suggestions it would be greatly appreciated.
Second, the solution for making adding and removing items from an array component in the properties panel is to access it through the backend api in the paint method. Whenever changes are made I have my extension throw a flag and repaint. Here is my code within the paint method:
//----------------------------------------------//
//----------------------------------------------//
When you call the backend api you can manipulate the reply object however you need to as if it was an object that you created. From there you can use the setProperties() method to apply all of the changes that you made. You do need to assign "this" to a new variable though in order to apply the patches to the app.
I hope this helps anyone who might need it!