Qlik Community

New to Qlik Sense

Discussion board where members can get started with Qlik Sense.

fmazzarelli
Contributor III

DROP-DOWN

Hi Community,

I would like to create a drop-down box where the user select an option


Immagine.png

And  radio buttons (2 of 10) or check box (2 of 10) will be enabled by default


Example:

I select "Terra" and  departments (MK and EO) will be enabled and data will be represented by a bar graph.


Any ideas?


1 Solution

Accepted Solutions
reddys310
Honored Contributor II

Re: DROP-DOWN

Hi Fabio Mazzarelli,

If you can enhance the extension, so that once you select a value from the drop down list, the selection is passed back to the calculation engine and generate a new hypercube.

Make use of something like this to make a selection from the extension.

if ( this.selectionsEnabled ) {

  $element.find( '.selectable' ).on( 'qv-activate', function () {

  if ( this.hasAttribute( "data-value" ) ) {

  var value = parseInt( this.getAttribute( "data-value" ), 10 ), dim = 0;

  self.selectValues( dim, [value], true );

  $( this ).toggleClass( "selected" );

  }

  } );

  }

- Sangram

1 Reply
reddys310
Honored Contributor II

Re: DROP-DOWN

Hi Fabio Mazzarelli,

If you can enhance the extension, so that once you select a value from the drop down list, the selection is passed back to the calculation engine and generate a new hypercube.

Make use of something like this to make a selection from the extension.

if ( this.selectionsEnabled ) {

  $element.find( '.selectable' ).on( 'qv-activate', function () {

  if ( this.hasAttribute( "data-value" ) ) {

  var value = parseInt( this.getAttribute( "data-value" ), 10 ), dim = 0;

  self.selectValues( dim, [value], true );

  $( this ).toggleClass( "selected" );

  }

  } );

  }

- Sangram

Community Browser