Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
moleroalonso
Contributor II
Contributor II

Create macro to retrive barcharts in APP

Hi, i want create a macro to retrive all barcharts in my APP. I've modified "List Sheet" macro but something is wrong because the response is empty.

Thank you!

Macro:

[

    {

        "name": "BARCHARLIST",

        "method": "CreateSessionObject",

        "handle": "${dochandle}",

        "params": [

            {

                "qInfo": {

                    "qType": "BarchartList"

                },

                "qAppObjectListDef": {

                    "qType": "barchart",

                    "qData": {

                        "title": "/qMetaDef/title"

                    }

                }

            }

        ]

    },

    {

        "method": "GetLayout",

        "handle": "${BARCHARLIST.result.qReturn.qHandle}",

        "params": []

    }

]

Response:

{

    "jsonrpc": "2.0",

    "id": 49,

    "result": {

        "qLayout": {

            "qInfo": {

                "qId": "be57b63d-2c17-4183-b4b4-8907b48c150e",

                "qType": "BarchartList"

            },

            "qSelectionInfo": {},

            "qAppObjectList": {

                "qItems": []

            }

        }

    }

}

0 Replies