Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Save $650 on Qlik Connect, Dec 1 - 7, our lowest price of the year. Register with code CYBERWEEK: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
Anurag2
Contributor II
Contributor II

How i can get all possible selection of a filter in Qlik React mashup using capabilities api

Hi, 

I am trying to fetch all possible selection of a filter using capabilities APIs, i am using webIntegrationId.
sharing my mashup code below.

import { useEffect, useState } from "react";
import { host, webIntegrationId } from "../utils/constants";

export const useQlikApp = (appId: string) => {
  const [app, setApp] = useState<any>();
  const [qlik, setQlik] = useState<any>();

  useEffect(() => {
    const config = {
      host,
      prefix: "/",
      port: 443,
      isSecure: true,
      webIntegrationId: webIntegrationId,
    };
    (window.require as any).config({
      baseUrl: `https://${config.host}/resources`,
      webIntegrationId: config.webIntegrationId,
      accessTokenStorage: "session",
    });

    (require as any)(["js/qlik"], (qlik: any) => {
      const appInstance = qlik.openApp(appId, config);
      setApp(appInstance)
      setQlik(qlik)
      qlik.on("error", (error: any) => console.error(error));
    });
  }, []);

  return [app, qlik];
};


i have tried to to follow below solution but still i am not getting filter options in it
https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-API-read-possible-values-of-a-sp...

For Example, In my case i have a filter Year and it has selection options like  [2022, 2023, 2024, 2025]. and i want to get these filter option values from qlik in my react app.

Please help me here.
Regards

0 Replies