2 Replies Latest reply: Jun 14, 2013 6:49 PM by Sean (Hyunku) Cho RSS

    Unable to get value of the property 'text': object is null or undefined

    Sean (Hyunku) Cho

      Hi all,

       

      Please someone tell me what I am missing...

       

      This is part of definition.xml

       

      <Text Label="Sort By" Type="select" Select="dim,sum" SelectLabel="Dimension,Measurement" /> 

      <Text Label="Sort Order" Type="select" Select="asc,desc" SelectLabel="Ascending,Descending" />

      <Initiate Name="Chart.Text.0.Content" Value="dim" />

      <Initiate Name="Chart.Text.1.Content" Value="asc" />

       

      and in the Script.js

       

      _this.ExtSettings.SortType = _this.Layout.Text0.text;

      _this.ExtSettings.SortOrder = _this.Layout.Text1.text;

       

      If I don't add second one (_this.ExtSettings.SortOrder = _this.Layout.Text1.text;), the extension object works well, but as soon as I add the second line, it generates "Unable to get value of the property 'text': object is null or undefined" message and worn't work. 

       

      What am i doing wrong? 

       

      Sean