Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to get object names of an Application

How do you get all object names of an application given the application Id?

5 Replies
Chanty4u
MVP
MVP

you mean object iDs?

Anonymous
Not applicable
Author

No, I mean a name. 

Mash-up pull chart and graph from Qlik Sense using Objects's ID. However, the IDs change when you do deployment ( move from one environment (TEST) to another(PROD)).  I am trying to figure out a way to automate the deployment process so that you don't have to going the mash up code & manually change the object IDs.

I am thinking if I can give the object a meaningful name I can find the right object to links to the mashup.

I am able to do it with App ID but have not figure out how to get name from object IDs

Here is what I did to get the app_id:

qlik.getAppList(function(list) {

        var content= "id=";

  list.some(function(value) {

      if (value.qDocName == 'MyApp')

   {

   document.getElementById("AppId").innerHTML = value.qDocId;

   //app = qlik.openApp(appid, config);

   app = openApp(value.qDocId, config);

   //var infos = app.GetAllInfos();

   //var infos = app.GetAllInfos();

   //alert(infos.length);

 

   //app = qlik.openApp(appid, config);

   }

  });

});

Anonymous
Not applicable
Author

I try and it does not work for me.

However, further research show that also deployment (export/import of qvf file) only change the AppId not  the object in it. Thanks so much for your ansnwers

Chanty4u
MVP
MVP

how it  will change if you move to test to prod environment?

app id and object ids will not change.