Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Community,
I would like to create a drop-down box where the user select an option
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?
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
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