0 Replies Latest reply: May 23, 2017 8:28 AM by Florian Salfenmoser RSS

    QlikView Extension - GetProperties

    Florian Salfenmoser

      Hello together,

       

      I´m currently trying/struggling to access the properties of a QlikView Object (TableChart in this case) through an QlikView Object Extension with JavaScript.

       

      The problem is, the JavaScript API-Guide only has a "SetProperty"-Function:

       

      https://help.qlik.com/en-US/qlikview-developer/12.0/apis/js%20API/symbols/Qv.Document.Object.Layout.html

       

      which can be fed with the following strings/parameters to set the desired property:

       

      https://help.qlik.com/en-US/qlikview-developer/12.1/Subsystems/Extensions/Content/extensions-properties-dimensions.htm

       

      which looks like:

       

      tableChart.Layout.SetProperty('Chart.Dimension.0.Field', 'Field1', true);

       

      if you want to set a new Field to the first Dimension.

       

      This works so far, but how can I access these values?

       

      The


      tableChart.Layout-Object

       

      does not have a "Chart"-Propertie for example.

       

      If I print out all nodes of the tableChart.Layout-Object, I get the following for SetProperties:

       

      SetProperty: function(b,d,c){this.Super.DocumentMgr.Set(this.Super.Name,{property:b,value:d},c)}

       

      The DocumentMgr has no Get-Function als far as I know....


      Maybe someone else already did what I´m trying to achieve and has an idea already.

       

      Thanks in advance.

       

      Best regards

       

      Florian