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
Welcome to our newly redesigned Qlik Community! Read our blog to learn about all the new updates: READ BLOG and REPORTED ISSUES
cancel
Showing results for 
Search instead for 
Did you mean: 
Specialist
Specialist

Creating a filter pane using API in Mashup

Hi everyone,

I have been happily using the Vizualisation API's create method to create various visualizations on the fly.  However, I notice that the Filter pane (list used to filter the data) is missing from the list of  available visualization types.  Does anyone know whether there is another way of creating a filter pane?

Regards,

Richard

1 Solution

Accepted Solutions
MVP & Luminary
MVP & Luminary

Having same problem here.

Btw. a simple listbox (not a filterpane) can be created in that way (undocumented):

app.visualization.create('listbox', null, {

      qListObjectDef: {

        qDef: {

            qFieldDefs: ['Month']

        }

      }

  }).then(model => {

    model.show('myDiv')

  })

Vizlib Head of R&D

View solution in original post

4 Replies
MVP & Luminary
MVP & Luminary

Having same problem here.

Btw. a simple listbox (not a filterpane) can be created in that way (undocumented):

app.visualization.create('listbox', null, {

      qListObjectDef: {

        qDef: {

            qFieldDefs: ['Month']

        }

      }

  }).then(model => {

    model.show('myDiv')

  })

Vizlib Head of R&D

View solution in original post

Specialist
Specialist

Thanks Ralf, (and thanks to undocumented features ) that really helped.  I used a slightly different syntax,but the same end result.

app.visualization.create('listbox',["MS"],

    {"title":"MS"}

).then(function(vis){

    vis.show("QV15");

    });

Creator
Creator

Do i need to change code for html as well?

Contributor
Contributor

Does anyone know how to create a filter box popup which has the search already active? I am trying to replicate the functionality that qlik has in the tables and in the filter pane and I cannot find a way to make the search always visible. 

oana_0-1596144565422.png