Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
fmazzarelli
Partner - Creator III
Partner - Creator 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
reddy-s
Master II
Master II

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

View solution in original post

1 Reply
reddy-s
Master II
Master II

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