Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
pradeep92
Partner - Creator II
Partner - Creator II

Get the list of QVDs and Table Names used in an Application by API's in Mashup

Hello,

I am creating a mashup application that contains all the published apps in a stream.

App Details :

  1. App Name
  2. App Link 
  3. Size 
  4. Published Date

Meta Details of the App :

  1. Fields
  2. Dimension , Tags and its Label
  3. Measure ,Tags and its expression

I have got all these details by using their respective API's .

app is a variable with App ID

Dimension:

app.getList("DimensionList", function(reply1){
var str1,str2,str3,str4 = "";

$.each(reply1.qDimensionList.qItems, function(key1,Dim) {
var i=0;
str2+=Dim.qData.tags[i];
str1+='<tr><td>'+(key1+1)+'</td><td>'+Dim.qData.title +'</td><td>'+Dim.qData.tags+'</td><td>'+Dim.qData.info[i].qName+'</td></tr>';
i=i+1;

});
str3=str1.split('#').join('-');
str4=str3.split('=').join('');
$('#Dimension').append(str4);

});

Measure:

app.createGenericObject({
qInfo: {
qId: "MeasureList",
qType: "MeasureList"
},
qMeasureListDef: {
qType: "measure",
qData: {
title: "/qMetaDef/title",
tags: "/qMetaDef/tags",
expression: "/qMeasure/qDef"
}
}
}, function(reply) {
var mstr1,mstr2,mstr3,mstr4 = "";
$.each(reply.qMeasureList.qItems, function(key2, Meas) {
var x=0;
mstr1+='<tr><td>'+(key2+1)+'</td><td>'+Meas.qData.title +'</td><td>'+Meas.qData.tags+'</td><td>'+Meas.qData.expression+'</td></tr>';
x=x+1;
});
mstr2=mstr1.split('#').join('-');
$('#Measure').append(mstr2);

});

Can someone help me to get the table names and QVDs that is used in an app by using Qlik API's.

2 Replies
pradeep92
Partner - Creator II
Partner - Creator II
Author

Hello Erik,

Thank you for the response. Can you please let me know how to use the Engine Functions to use it in Javascript in Mashup Application ?

If you could provide me a sample code for any one function used, it would be great to understand to make use of other functions too.

 

Thanks,

Pradeep