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

Announcements
Talend Cloud AWS EU Scheduled Outage: Starting Tues 26 May 21:00 CEST with expected completion Wed 27 May 01:00 CEST
cancel
Showing results for 
Search instead for 
Did you mean: 
BradMazurek
Contributor II
Contributor II

Passing around an App object versus calling qlik.currApp() when needed

What is the best practice when using the App object associated with your extension? Should you only request it once, then pass it around or can you request it whenever you want?

I started by requesting qlik.currApp() once, then passing it around. Eventually, that felt cumbersome, so to streamline the marshalling and passing of data to callbacks I tried just calling qlik.currApp() when I needed my App object and suddenly nothing worked.

What would cause these App Objects to differ?

  • qlik.currApp() invoked in mounted()
  • qlik.currApp() invoked during a callback from Field().OnData.once()

(Edited to fix spelling mistake.)

0 Replies