Qlik Community

Qlik Sense Integration, Extensions, & APIs

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

Announcements
Qlik® Product Spotlight: Discover what’s possible. Get more from our products.
See for yourself. Register today.
rbartley
Valued Contributor

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

Re: Creating a filter pane using API in Mashup

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')

  })

2 Replies
MVP & Luminary
MVP & Luminary

Re: Creating a filter pane using API in Mashup

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')

  })

rbartley
Valued Contributor

Re: Creating a filter pane using API in Mashup

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");

    });