2 Replies Latest reply: Sep 23, 2017 2:22 PM by Krishna Kiriti RSS

    APIs to retrieve expressions used for a measure

    Krishna Kiriti

      Hi,

      Using the Qlik engine APIs, I am able to retrieve list of measures used in an application from my web app, but I can't find anything to also get the expressions used for measures.

       

      Any help in this regard is appreciable.

       

      Thanks in advance

        • Re: APIs to retrieve expressions used for a measure
          Erik Wetterberg

          Hi,

          In your definition of the Measurelist you need to say what data you want to get for each measure by defining qData.

          In the capabilities API you can do like this:

          app.createGenericObject({

           

                          qInfo: {

                              qType: "MeasureList"

                          },

                          qMeasureListDef: {

                              qType: "measure",

                              qData: {

                                  qMeasure: "/qMeasure"

                              }

                          }

                      }, setData);

           

          Hope this helps

           

          Erik Wetterberg