Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to get app name from app id in Qlik Sense Extension?

Hi,

In the following image (taken from Qlik Help), let's call:

  • app id: the long string in the red box
  • app name: "Tutorial"

From the JavaScript code in my Qlik Sense extension, I am able to retrieve the app ID using:

require( ["js/qlik"], function ( qlik ) {

     console.log(qlik.currApp().id);

});


Is there a similar way to get more information about the app, for instance, the app name? (="Tutorial")

qswb_mashups_GetAppId.png

1 Solution

Accepted Solutions
Alexander_Thor
Employee
Employee

You can access the app name from the App layout on the qTitle property

Here is a example: Access App Name - JSFiddle

View solution in original post

2 Replies
Alexander_Thor
Employee
Employee

You can access the app name from the App layout on the qTitle property

Here is a example: Access App Name - JSFiddle

Not applicable
Author

Thanks for the example Alexander, I have accepted your answer.

Here's my simplified version:

// Get app name and id

require( ["js/qlik"], function ( qlik ) {

     qlik.currApp().getAppLayout().then(applayout => {

          var appName = applayout.layout.qTitle;

          var appId = applayout.layout.qFileName;

          console.log(appName + " : " + appId);

    });

});