1 Reply Latest reply: Apr 20, 2012 10:03 AM by Erik Wetterberg RSS

    Deleting Dynamic Expressions

    Nicole Smith

      This is the code that I have used in my DynProperties.qvpp in order to add a variable amount of dimensions and expressions.  It lets me successfully add and delete dimensions, and while it lets me add expressions, it does not allow me to delete them (the delete buttons shows, but clicking on it accomplishes nothing).  I would appreciate if someone could point out where I went wrong.  Thanks!

       

       

      <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="#">
                      Basic Table
                  </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-bar-chart-header-clickable' avq='prop_listheader:.Chart.Dimension'>Dimensions:</div>
          <ul avq='list:.Chart.Dimension' class='prop-dyn-sortable' tabindex='-1'>
              <li class='ui-state-default prop-sortable-list-li' name='chart-dimension' >
                  <span class='prop-sortable-list-arrow-position' avq='list_movehandle:'></span>
                  <div class='prop-sortable-item-narrow' avq='prop_dynamicDropdown:.Field'></div>
                  <div class='prop-sortable-right-width-56px'>
                      <div class='prop-sortable-width-28px' propicontype='tool' avq='prop_dlgbuttonjqui:.:ExtensionDimDialog.qvpp'></div>
                      <div class='prop-sortable-width-28px' name='sortable-list-item-close-button' propicontype='delete-row' avq='prop_buttonjqui:.Remove'></div>
          </div></li></ul>
          <div class='prop-bar-chart-header-clickable' avq='prop_listheader:.Chart.Expression'>Expressions:</div>
          <ul avq='list:.Chart.Expression' class='prop-dyn-sortable' tabindex='-1'>
              <li class='ui-state-default prop-sortable-list-li' name='chart-measurement' >
              <span class='prop-sortable-list-arrow-position' avq='list_movehandle:'></span>
                  <div class='prop-sortable-item-narrow' avq='prop_editexpression:.0.Definition'></div>
                  <div class='prop-sortable-right-width-28px'>
                  <div class='prop-sortable-width-28px' name='sortable-list-item-close-button' propicontype='delete-row' avq='prop_buttonjqui:.Remove'></div>
          </div></li></ul>
      
              </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>
      
        • Deleting Dynamic Expressions
          Erik Wetterberg

          Hi,

          Looks like this is a bug, I'm afraid. In the extension part there is a div that displays the button. It look like this:

               <div class='prop-sortable-width-28px' name='sortable-list-item-close-button'      propicontype='delete-row' avq='prop_buttonjqui:.Remove'></div>

           

          The last attribute, avq should be like this instead: avq='prop_buttonjqui:.0.Remove'

           

          So there is a '.0' missing...

           

          Erik