Set analytics selection state on qlik-embed
With qlik-embed, you can set the selection state for the embedded objects in
your web application using the qlik-initial-selections
element. In this
example, you set the analytics application ID in the qlik-initial-selections
tag and add <field>
elements containing the field name and values to configure
the selections.
- Use the
appid
attribute in theqlik-initial-selections
tag to specify the analytics application. - Use the
name
attribute in the<field>
element to specify the actual field name in the analytics application. Dimensions are not supported. - Use the
values
attribute to specify the values to be selected within that field, formatted as a semicolon (;) delimited string. - Add more
<field>
tags to make selections in multiple fields.
<qlik-initial-selections app-id="<APP_ID_FROM_QLIK_ANALYTICS>">
<field name="<FIELD_NAME_FROM_APP>" values="<FIELD_VALUE_OF_FIELD>;<FIELD_VALUE_OF_FIELD>"></field>
<field name="<FIELD_NAME_FROM_APP>" values="<FIELD_VALUE_OF_FIELD>;<FIELD_VALUE_OF_FIELD>"></field>
</qlik-initial-selections>
Here’s an example with variables filled in
<qlik-initial-selections app-id="a51a902d-76a9-4c53-85d2-066b44240146">
<field name="Product Sub Group Desc" values="Hot Dogs;Fresh Fruit"></field>
<field name="AccountDesc" values="Sales;Cost of goods sold"></field>
</qlik-initial-selections>
Want to explore more qlik-embed? Explore all qlik-embed UIs and params.