Qlik Community

New to Qlik Sense

Discussion board where members can get started with Qlik Sense.

naveen_md
New Contributor II

How to get the API call for charts based on sheet id?

Hi,

I trying to get the API for charts based on sheet. If possible, could you please explain how can it be done?

Thank You

3 Replies
Employee
Employee

Re: How to get the API call for charts based on sheet id?

Do you mean you have a chart type that extends the sheet type? If that is the case, then you should look into the API for generic objects. Sheets are generic objects as well.

naveen_md
New Contributor II

Re: How to get the API call for charts based on sheet id?

No, I need the API's for individual charts which is present in a sheet or the name of API's present in qlik to access the charts for a sheet.

Employee
Employee

Re: How to get the API call for charts based on sheet id?

Ah, OK. In the Engine API, charts are children of sheets. To access them you either need to know the ID of the individual sheet objects directly, or navigate to them through the child list of a sheet. If there is a specific object you want to inspect, then I can recommend this tool for finding the ID of the object you are interested in:

Qlik Explorer for Developers is here!

That tool is also useful for navigating through the properties of the objects, which might also be of interest to you.

If, on the other hand, you don't know the ID up front, and want to navigate to it programatically, then I can recommend you to have a look at this example that traverses all objects of an app. It should give you some indications regarding which endpoints would be useful for you:

PublicExamples/AppPreload at master · AptkQlik/PublicExamples · GitHub

It's primarily this file you want to have a look at:

PublicExamples/AppPreload.cs at master · AptkQlik/PublicExamples · GitHub