<?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 How to use input field to update a direct query in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-to-use-input-field-to-update-a-direct-query/m-p/39163#M2690</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am currently trying to create a dashboard with a line chart, an input field and a reload button.&lt;/P&gt;&lt;P&gt;I want to be able to use direct query to load different time series. (The problem is, I have the possibility of loading &amp;gt;1000 time series (seconds data) and I don't want to load all data in loading script which would take ages, so&amp;nbsp; I use direct query.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The dashboard looks like this:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="dqdashboard.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/195138_dqdashboard.PNG" style="width: 620px; height: 261px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I load the timestamp as a dimension and the input variable as measure (has default value temperature). This works only for the default variable name. If I input another variable name, the data does not change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My loading script:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;let DQVarName = 'Temperature';&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;DIRECT QUERY&lt;BR /&gt;Dimension&lt;BR /&gt;t_stamp&lt;BR /&gt;Measure &lt;BR /&gt;$(DQVarName) as value&lt;BR /&gt;FROM MY_TAG_TABLE;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to be able to load another time series, by typing the name of another measure in the input field.&lt;/P&gt;&lt;P&gt;Can you help me with that or is there maybe a better way to do it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Mar 2018 08:23:40 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-03-02T08:23:40Z</dc:date>
    <item>
      <title>How to use input field to update a direct query</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-use-input-field-to-update-a-direct-query/m-p/39163#M2690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am currently trying to create a dashboard with a line chart, an input field and a reload button.&lt;/P&gt;&lt;P&gt;I want to be able to use direct query to load different time series. (The problem is, I have the possibility of loading &amp;gt;1000 time series (seconds data) and I don't want to load all data in loading script which would take ages, so&amp;nbsp; I use direct query.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The dashboard looks like this:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="dqdashboard.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/195138_dqdashboard.PNG" style="width: 620px; height: 261px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I load the timestamp as a dimension and the input variable as measure (has default value temperature). This works only for the default variable name. If I input another variable name, the data does not change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My loading script:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;let DQVarName = 'Temperature';&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;DIRECT QUERY&lt;BR /&gt;Dimension&lt;BR /&gt;t_stamp&lt;BR /&gt;Measure &lt;BR /&gt;$(DQVarName) as value&lt;BR /&gt;FROM MY_TAG_TABLE;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to be able to load another time series, by typing the name of another measure in the input field.&lt;/P&gt;&lt;P&gt;Can you help me with that or is there maybe a better way to do it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2018 08:23:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-use-input-field-to-update-a-direct-query/m-p/39163#M2690</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-02T08:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to use input field to update a direct query</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-use-input-field-to-update-a-direct-query/m-p/39164#M2691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maybe try the solution provided here &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlikview.com/thread/58636" title="https://community.qlikview.com/thread/58636"&gt;Pass variable from user to script? | Qlik Community&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it is an old thread and maybe &lt;A href="https://community.qlik.com/qlik-users/15823"&gt;swuehl&lt;/A&gt;‌ have a better solution for this now ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2018 09:05:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-use-input-field-to-update-a-direct-query/m-p/39164#M2691</guid>
      <dc:creator>YoussefBelloum</dc:creator>
      <dc:date>2018-03-02T09:05:23Z</dc:date>
    </item>
  </channel>
</rss>

