Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Every one ,
If i want to select particular Sheet means (Goto Specific Sheet) in the drop down menu, what are the Sheets will be there in that App Those Sheets will be displaying in Selection Sheet Drop Down menu @@as show in below picture.
Regards,
Sai Madhu
Hi Madhu,
I am assumming that you need the no of sheets in an app, with their ID'd.
So make use of this code:
paint: function ( $element, layout ) {
//add your rendering code here
debugger;
var app=qlik.currApp();
var cnt = 0;
app.getAppObjectList("sheet",function(reply)
{
console.log(reply);
var str = "";
$.each(reply.qAppObjectList.qItems, function(key, value)
{
console.log(str);
str += value.qData.title + ' ';
if(currUrl.search("analysis") >-1)
{
console.log(value.qInfo.qId);console.log(' - ');console.log(value.qData.title);
}
else
{
console.log(value.qData.title);
}
cnt+=1;
});
console.log(cnt);
});
}
This will give you the list of all the sheets in an app.
Thanks and Regards,
Sangram Reddy.