Skip to main content
Announcements
Get Ready. A New Qlik Learning Experience is Coming February 17! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Anurag2
Contributor II
Contributor II

Get current selection with @qlik/embed-react

I have used @qlik/embed-react to embed qlik cloud in reactjs and i want to get current selection in my reactJS app. 
i am embedding selection bar using below code 

<QlikEmbed  ui="analytics/selections" appId={appId} />

and getting app instance using QlikEmbedConfig context
 
  const hostConfig = useContext(QlikEmbedConfig);
  const app = useApp(appId, hostConfig);
 
and also have a hook useApp :

export const useApp = (appId, hostConfig) => {
  const [app, setApp] = useState(null);

  useEffect(() => {
    const getApp = async () => {
      const session = qix.openAppSession({ appId, hostConfig });
      const doc = await session.getDoc();
      setApp(doc);
    };
    if (hostConfig) {
     return app;
    }
  }, [appId, hostConfig]);

  return app;
};


can anyone please help me how i get selection/filters values for current sheet
Anurag2_0-1733298639136.png

Please help me here.



0 Replies