1 Reply Latest reply: Oct 24, 2015 1:05 AM by Thinh Nguyen RSS

    Extension's Dimensions and Measurements

      Hi everyone,

       

      I'm trying to create my first Qlikview extension.  I've got as far as being able to load and save values for 1 Dimension and 1 Measurement. When I add a second Dimension and a second Measurement, Qlikview doesn't seem to be saving the expressions that I entered in the second Dimension and Measurement.  The values are lost after I clicked off and on for the webview mode inside of Qlikview desktop.  Below are my Definition.xml, test.qvpp, and Script.js.

      Definition.xml:

       

      <ExtensionObject Label="Test" Description="Test" PageHeight="300000">

        <PropertiesPage Version="11" File="test.qvpp" />

        <Dimension Label="Dimension1" Initial="" DropTarget="D1"/>

        <Dimension Label="Dimension2" Initial="" DropTarget="D2"/>

        <Measurement Label="Measurement1" Initial=""/>

        <Measurement Label="Measurement2" Initial="" />

        <Initiate Name="Chart.Title" value="Test" />

        <Initiate Name="Caption.Text" Value="Test" />

      </ExtensionObject>

       

      test.qvpp:

       

      <div class="ToolWindow-MainBody" avq="foldOutMenu:." style="overflow: visible !important; float: left;">

        <div class="prop-accordion" avq="accordion:.">

          <h3 class="prop-h3 accordion-shadow">

            <a href="#">

              Test

            </a>

          </h3>

          <div class="prop-grid_container accordion-shadow-enabler" style="overflow:auto;">

            <div class="prop-grid_clear prop-grid_top-vertical-spacer-12px prop-grid_last"></div>

       

       

            <div class='prop-grid_clear prop-grid_prepend-1 prop-grid_span-5' avq='prop_label'>Region Dimension</div>

            <div class='prop-grid_span-10 prop-grid_last'>

              <div class='prop-grid_span-7' style='width:94%;' avq='prop_editexpression:.Chart.Dimension.0.Field'></div>

            </div>

            <br />

            <div class='prop-grid_clear prop-grid_prepend-1 prop-grid_span-5' avq='prop_label'>Coordinates</div>

            <div class='prop-grid_span-10 prop-grid_last'>

              <div class='prop-grid_span-7' style='width:94%;' avq='prop_editexpression:.Chart.Dimension.1.Field'></div>

            </div>

            <br />

            <div class='prop-grid_clear prop-grid_prepend-1 prop-grid_span-5' avq='prop_label'>Measurement</div>

            <div class='prop-grid_span-10 prop-grid_last'>

              <div class='prop-grid_span-7 prop-grid_last' style='width:94%;' avq='prop_editexpression:.Chart.Expression.0.0.Definition'></div>

            </div>

            <br />

            <div class='prop-grid_clear prop-grid_prepend-1 prop-grid_span-5' avq='prop_label'>ColorExpression</div>

            <div class='prop-grid_span-10 prop-grid_last'>

              <div class='prop-grid_span-7 prop-grid_last' style='width:94%;' avq='prop_editexpression:.Chart.Expression.1.0.Definition'></div>

            </div>

            <br />

          </div>

          <h3 class="prop-h3 accordion-shadow" avq="activeAccordionHeader:.:GenericPresentationFoldout.qvpp">

            <a href="#">Presentation</a>

          </h3>

          <div class="prop-grid_container accordion-shadow-enabler" avq="panel::Layout.qvpp"></div>

          <h3 class="prop-h3 accordion-shadow" avq="activeAccordionHeader::PropertiesCaptionFoldout.qvpp">

            <a href="#">Caption</a>

          </h3>

          <div class="prop-grid_container accordion-shadow-enabler" avq="panel::Caption.qvpp"></div>

          <h3 class="prop-h3 accordion-shadow" avq="activeAccordionHeader:.:PropertiesOptionsFoldout.qvpp">

            <a href="#">Options</a>

          </h3>

          <div class="prop-grid_container accordion-shadow-enabler" avq="panel::Options.qvpp"></div>

        </div>

        <span class="bottom-gap"></span>

      </div>

       

      Script.js: (very simple script) I just need to look at the data being returned.

       

       

      function extension_Init() {

          extension_Done();

      }

       

      function extension_Done() {

          Qva.AddExtension('Test', function () {

              console.debug(this.Data);

           console.debug(this.Data.Rows);

        });

      }

      extension_Init();

       

      screenshot of data not being saved after clicking off and on for webview is attached.

       

      Can someone please let know what i'm missing or what I did wrong?

      Thanks,