<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Direct Query development in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Direct-Query-development/m-p/2085398#M88998</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I'm developing a prototype app to explore the possibilities of direct query in Qlik Sense.&lt;/P&gt;
&lt;P&gt;I want to create a very basic app that reads a table from an sql server database and displays the data in a table on the front end.&lt;/P&gt;
&lt;P&gt;To do this, I have created a very simple script that contains the direct query written as follows:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;LIB CONNECT TO 'Tirocinante:MSSQL Sogesi';

[JB_AnagraficaArticoli_DirectQueryTest]:
DIRECT QUERY 
	DIMENSION
        CodArticolo,
        DescrArticolo
    MEASURE
        IdAzienda
FROM JUSTBUSINESS.dbo."JB_AnagraficaArticoli";&lt;/LI-CODE&gt;
&lt;P&gt;The connector i'm using is the basic "Microsoft Sql Server".&amp;nbsp;&lt;/P&gt;
&lt;DIV class="flex-1 overflow-hidden"&gt;
&lt;DIV class="react-scroll-to-bottom--css-ujugi-79elbk h-full dark:bg-gray-800"&gt;
&lt;DIV class="react-scroll-to-bottom--css-ujugi-1n7m0yu"&gt;
&lt;DIV class="flex flex-col text-sm dark:bg-gray-800"&gt;
&lt;DIV class="group w-full text-gray-800 dark:text-gray-100 border-b border-black/10 dark:border-gray-900/50 bg-gray-50 dark:bg-[#444654]"&gt;
&lt;DIV class="flex p-4 gap-4 text-base md:gap-6 md:max-w-2xl lg:max-w-[38rem] xl:max-w-3xl md:py-6 lg:px-0 m-auto"&gt;
&lt;DIV class="relative flex w-[calc(100%-50px)] flex-col gap-1 md:gap-3 lg:w-[calc(100%-115px)]"&gt;
&lt;DIV class="flex flex-grow flex-col gap-3"&gt;
&lt;DIV class="min-h-[20px] flex flex-col items-start gap-4 whitespace-pre-wrap break-words"&gt;
&lt;DIV class="markdown prose w-full break-words dark:prose-invert light"&gt;
&lt;P&gt;The script loads without any errors.&lt;/P&gt;
&lt;P&gt;At the front-end, when creating 3 visualizations that contain the fields I loaded through direct query, I encounter three different behaviors (refer to the attached image).&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Table and bar chart: In this case, it shows that there is an error in the direct discovery expression.&lt;/LI&gt;
&lt;LI&gt;Filter box: When displaying the dimensions in the filter box, they appear correctly.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;What mistake am I making?&lt;/P&gt;
&lt;P&gt;PS: I know I could create an app entirely using "IMPORT LIVE" with direct query, but that's not what I want to do at the moment.&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="flex justify-between lg:block"&gt;
&lt;DIV class="text-gray-400 flex self-end lg:self-center justify-center mt-2 gap-2 md:gap-3 lg:gap-1 lg:absolute lg:top-0 lg:translate-x-full lg:right-0 lg:mt-0 lg:pl-2 visible"&gt;&lt;BUTTON class="flex ml-auto gap-2 rounded-md p-1 hover:bg-gray-100 hover:text-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-gray-200 disabled:dark:hover:text-gray-400"&gt;&lt;/BUTTON&gt;
&lt;DIV class="flex gap-1"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="h-32 md:h-48 flex-shrink-0"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BUTTON class="cursor-pointer absolute right-6 bottom-[124px] md:bottom-[120px] z-10 rounded-full border border-gray-200 bg-gray-50 text-gray-600 dark:border-white/10 dark:bg-white/10 dark:text-gray-200"&gt;&lt;/BUTTON&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="absolute bottom-0 left-0 w-full border-t md:border-t-0 dark:border-white/20 md:border-transparent md:dark:border-transparent md:bg-vert-light-gradient bg-white dark:bg-gray-800 md:!bg-transparent dark:md:bg-vert-dark-gradient pt-2 md:-left-2"&gt;&lt;FORM class="stretch mx-2 flex flex-row gap-3 last:mb-2 md:mx-4 md:last:mb-6 lg:mx-auto lg:max-w-2xl xl:max-w-3xl"&gt;
&lt;DIV class="relative flex h-full flex-1 items-stretch md:flex-col" role="presentation"&gt;
&lt;DIV class=""&gt;
&lt;DIV class="h-full flex ml-1 md:w-full md:m-auto md:mb-2 gap-0 md:gap-2 justify-center"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/FORM&gt;&lt;/DIV&gt;</description>
    <pubDate>Mon, 19 Jun 2023 15:28:02 GMT</pubDate>
    <dc:creator>zuk</dc:creator>
    <dc:date>2023-06-19T15:28:02Z</dc:date>
    <item>
      <title>Direct Query development</title>
      <link>https://community.qlik.com/t5/App-Development/Direct-Query-development/m-p/2085398#M88998</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I'm developing a prototype app to explore the possibilities of direct query in Qlik Sense.&lt;/P&gt;
&lt;P&gt;I want to create a very basic app that reads a table from an sql server database and displays the data in a table on the front end.&lt;/P&gt;
&lt;P&gt;To do this, I have created a very simple script that contains the direct query written as follows:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;LIB CONNECT TO 'Tirocinante:MSSQL Sogesi';

[JB_AnagraficaArticoli_DirectQueryTest]:
DIRECT QUERY 
	DIMENSION
        CodArticolo,
        DescrArticolo
    MEASURE
        IdAzienda
FROM JUSTBUSINESS.dbo."JB_AnagraficaArticoli";&lt;/LI-CODE&gt;
&lt;P&gt;The connector i'm using is the basic "Microsoft Sql Server".&amp;nbsp;&lt;/P&gt;
&lt;DIV class="flex-1 overflow-hidden"&gt;
&lt;DIV class="react-scroll-to-bottom--css-ujugi-79elbk h-full dark:bg-gray-800"&gt;
&lt;DIV class="react-scroll-to-bottom--css-ujugi-1n7m0yu"&gt;
&lt;DIV class="flex flex-col text-sm dark:bg-gray-800"&gt;
&lt;DIV class="group w-full text-gray-800 dark:text-gray-100 border-b border-black/10 dark:border-gray-900/50 bg-gray-50 dark:bg-[#444654]"&gt;
&lt;DIV class="flex p-4 gap-4 text-base md:gap-6 md:max-w-2xl lg:max-w-[38rem] xl:max-w-3xl md:py-6 lg:px-0 m-auto"&gt;
&lt;DIV class="relative flex w-[calc(100%-50px)] flex-col gap-1 md:gap-3 lg:w-[calc(100%-115px)]"&gt;
&lt;DIV class="flex flex-grow flex-col gap-3"&gt;
&lt;DIV class="min-h-[20px] flex flex-col items-start gap-4 whitespace-pre-wrap break-words"&gt;
&lt;DIV class="markdown prose w-full break-words dark:prose-invert light"&gt;
&lt;P&gt;The script loads without any errors.&lt;/P&gt;
&lt;P&gt;At the front-end, when creating 3 visualizations that contain the fields I loaded through direct query, I encounter three different behaviors (refer to the attached image).&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Table and bar chart: In this case, it shows that there is an error in the direct discovery expression.&lt;/LI&gt;
&lt;LI&gt;Filter box: When displaying the dimensions in the filter box, they appear correctly.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;What mistake am I making?&lt;/P&gt;
&lt;P&gt;PS: I know I could create an app entirely using "IMPORT LIVE" with direct query, but that's not what I want to do at the moment.&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="flex justify-between lg:block"&gt;
&lt;DIV class="text-gray-400 flex self-end lg:self-center justify-center mt-2 gap-2 md:gap-3 lg:gap-1 lg:absolute lg:top-0 lg:translate-x-full lg:right-0 lg:mt-0 lg:pl-2 visible"&gt;&lt;BUTTON class="flex ml-auto gap-2 rounded-md p-1 hover:bg-gray-100 hover:text-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-gray-200 disabled:dark:hover:text-gray-400"&gt;&lt;/BUTTON&gt;
&lt;DIV class="flex gap-1"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="h-32 md:h-48 flex-shrink-0"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BUTTON class="cursor-pointer absolute right-6 bottom-[124px] md:bottom-[120px] z-10 rounded-full border border-gray-200 bg-gray-50 text-gray-600 dark:border-white/10 dark:bg-white/10 dark:text-gray-200"&gt;&lt;/BUTTON&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="absolute bottom-0 left-0 w-full border-t md:border-t-0 dark:border-white/20 md:border-transparent md:dark:border-transparent md:bg-vert-light-gradient bg-white dark:bg-gray-800 md:!bg-transparent dark:md:bg-vert-dark-gradient pt-2 md:-left-2"&gt;&lt;FORM class="stretch mx-2 flex flex-row gap-3 last:mb-2 md:mx-4 md:last:mb-6 lg:mx-auto lg:max-w-2xl xl:max-w-3xl"&gt;
&lt;DIV class="relative flex h-full flex-1 items-stretch md:flex-col" role="presentation"&gt;
&lt;DIV class=""&gt;
&lt;DIV class="h-full flex ml-1 md:w-full md:m-auto md:mb-2 gap-0 md:gap-2 justify-center"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/FORM&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 19 Jun 2023 15:28:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Direct-Query-development/m-p/2085398#M88998</guid>
      <dc:creator>zuk</dc:creator>
      <dc:date>2023-06-19T15:28:02Z</dc:date>
    </item>
  </channel>
</rss>

