16 Replies Latest reply: Feb 14, 2017 11:25 AM by Martin Mahler RSS

    Qliksense custom measure property for extension with expression value

    Sheldon Kennedy

      I have created a custom property for a measure in my extension

      CustomMeasureProp:{

                type:"string",

                label:"Custom Measure Property",

                ref:"customMeasureProperty",

                expression: "optional"

      }

      In the QlikSense Desktop I am able to add my extension and see the custom property when adding my measure.

      I populate it with my EXPRESSION Max(value).

       

      THE QUESTION.  

      How do I access that evaluated expression through the api?

       

      I have used my code

      $scope.backendApi.getProperties().then(function(reply){

       

                angular.forEach(reply.qHyperCubeDef.qMeasures,function(measure){

                 console.log('MEASURE',measure);

                 if(typeof measure.customMeasureProperty!=='undefined'){

                    console.log('MEASURE LABEL', measure.customMeasureProperty);

               }

      });

       

      Rather than returning the evaluated expression when looking  at the object measure.customMeasureProperty, it returns the string Max(value).

       

      So how do get the evaluated value?