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

how to get the tables list from Data model viewer using Qlik sense API

Hi Community,

I'm trying to get the tables list which was showing in the data model viewer through API. Any one have any idea how to achieve this. Please share if you do.image.png

Thanks.

Labels (2)
1 Solution

Accepted Solutions
Manoj_Prabu
Partner - Creator
Partner - Creator
Author

Hi folks,

I found the solution using the below.

var result=app.theme.app.engineApp.getTablesAndKeys(
        { qcx: 0qcy: 0 },
        { qcx: 0qcy: },
        0, false, false
      )
      console.log(result)
 
I'm going to mark this as a Solution.
Thanks

View solution in original post

3 Replies
Francisco_Fernandez

Hello @Manoj_Prabu ,

If i'm not mistaken you can use the engine api to get that information. https://help.qlik.com/en-US/sense-developer/February2021/apis/EngineAPI/definitions-TableViewSaveInf...

 

Also I would suggest you to check this tool https://github.com/qlik-oss/catwalk

 

Hope this helps.

 

Best regards,

Francisco

Manoj_Prabu
Partner - Creator
Partner - Creator
Author

Hi @Francisco_Fernandez ,

Thanks for the response. I got what I want from Engine API GetTablesAndKeys method. My requirement is, is there any way to get that result with Qlik APIs other than Engine API.

Thanks.

Manoj_Prabu
Partner - Creator
Partner - Creator
Author

Hi folks,

I found the solution using the below.

var result=app.theme.app.engineApp.getTablesAndKeys(
        { qcx: 0qcy: 0 },
        { qcx: 0qcy: },
        0, false, false
      )
      console.log(result)
 
I'm going to mark this as a Solution.
Thanks