12 Replies Latest reply: Dec 24, 2015 8:03 AM by YVES BLAKE RSS

    selectValues extension API do not unselect last selected value

    YVES BLAKE

      Hi,

      I use the following code to select / unselect dimension values from D3 click event :

       

      function clickValue(d,i) {    var dim = 0, value = d.dimensionid;    self.selectValues( dim, [value], true ); }

       

      The dimensionid is populated from hypercube dimension value qElemNumber.

      This was working well until Sense release 2.0.

       

      Since release 2.0, unselecting the last selected value has no effect (it remains selected in the toolbar). However, a second click on the same value makes the unselection working...

       

      So the first question is : Why does the selectValues extension API does'nt work when clicking once the last selected value ?

       

      If I use a simple extension with jquery and "qv-activate" event it does work well. The second question is : How could we handle the "qv-activate" event within D3 ?

       

      Replacing

      .on("click", clickValue)

      By

      .on("qv-activate", clickValue)

      doesn't work.

       

      Thanks for any help