Qlik Community

Ask a Question

Qlik Sense Integration, Extensions, & APIs

Discussion board where members can learn more about Integration, Extensions and API’s for Qlik Sense.

Announcements
March 11, 2PM EST: Do More with Qlik - Getting Started wtih Qlik Sense SaaS - Redux. REGISTER NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
arunachalam
Contributor
Contributor

Clear Selections to reflect on Dropdown menu mashup

Hi, I am building a mashup using a custom template. I have created a drop down select object following the tutorial

Mashup Editor - Create a Bootstrap Drop Down selection menu

The drop down menu looks and works great. I have created a current selections box using

<div id="CurrentSelections" class="qvobjects">

<div class="current-selections-placeholder">

<span>Connect to app to see Selection Toolbar</span>

</div>

</div>

if (app) {

app.getObject('CurrentSelections','CurrentSelections');

$(".current-selections-placeholder span").css("display", "inline-block");

app.clearAll();

$('#qvfilters .dropdown button').html('Select Department <span class="caret"></span>');

}

My mashup looks like this

mashup.PNG

When I clear my selections, the drop down box still holds the value selected. Would anyone be able to advise on how to clear selections on the drop down box.

1 Reply
ErikWetterberg

I would set the button text in the showData callback function. Look in the data, is there a selected value, set that as button value, if not set ''select department' as value.

Erik Wetterberg