0 Replies Latest reply: Jun 28, 2017 12:24 PM by José María Molero RSS

    Create macro to retrive barcharts in APP

    José María Molero

      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": []

                  }

              }

          }

      }