Qlik Community

Qlik Sense App Development

Discussion board where members can learn more about Qlik Sense App Development and Usage.

Announcements
Qlik® Product Spotlight: Discover what’s possible. Get more from our products.
See for yourself. Register today.
nguyendeana
New Contributor

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
Esteemed Contributor III

Re: How to get object names of an Application

you mean object iDs?

nguyendeana
New Contributor

Re: How to get object names of an Application

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);

   }

  });

});

isingh30
Valued Contributor

Re: How to get object names of an Application

nguyendeana
New Contributor

Re: How to get object names of an Application

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
Esteemed Contributor III

Re: How to get object names of an Application

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

app id and object ids will not change.