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
Please help me here.