<?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 User Input Field to be used in Where Clause of SQL script? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/User-Input-Field-to-be-used-in-Where-Clause-of-SQL-script/m-p/441299#M164512</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have read many discussions on User Input prompts.&lt;/P&gt;&lt;P&gt;I am looking to load data from a SQL script &lt;/P&gt;&lt;P&gt;and I need the where clause to load from the value of what the user typed in the User Input Prompt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's what I have so far; but I get an error message:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vMyVar = INPUT('Enter Incident #', 'Input box');&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;FROM ( SELECT "INCIDENT_NUMBER"&lt;/P&gt;&lt;P&gt;FROM AUDITED_FIELDS&lt;/P&gt;&lt;P&gt;WHERE "INCIDENT_NUMBER" = mMyVar);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting the following error:&lt;/P&gt;&lt;P&gt;ErrorSource:&amp;nbsp; Microsoft OLE DB Provider for ODBC Drivers, ErrorMsg:&amp;nbsp; [Oracle][ODBC][Ora]ORA-00904: "VMYVAR":&amp;nbsp; invalid identifier&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 May 2013 22:06:20 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-05-08T22:06:20Z</dc:date>
    <item>
      <title>User Input Field to be used in Where Clause of SQL script?</title>
      <link>https://community.qlik.com/t5/QlikView/User-Input-Field-to-be-used-in-Where-Clause-of-SQL-script/m-p/441299#M164512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have read many discussions on User Input prompts.&lt;/P&gt;&lt;P&gt;I am looking to load data from a SQL script &lt;/P&gt;&lt;P&gt;and I need the where clause to load from the value of what the user typed in the User Input Prompt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's what I have so far; but I get an error message:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vMyVar = INPUT('Enter Incident #', 'Input box');&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;FROM ( SELECT "INCIDENT_NUMBER"&lt;/P&gt;&lt;P&gt;FROM AUDITED_FIELDS&lt;/P&gt;&lt;P&gt;WHERE "INCIDENT_NUMBER" = mMyVar);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting the following error:&lt;/P&gt;&lt;P&gt;ErrorSource:&amp;nbsp; Microsoft OLE DB Provider for ODBC Drivers, ErrorMsg:&amp;nbsp; [Oracle][ODBC][Ora]ORA-00904: "VMYVAR":&amp;nbsp; invalid identifier&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 May 2013 22:06:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/User-Input-Field-to-be-used-in-Where-Clause-of-SQL-script/m-p/441299#M164512</guid>
      <dc:creator />
      <dc:date>2013-05-08T22:06:20Z</dc:date>
    </item>
    <item>
      <title>Re: User Input Field to be used in Where Clause of SQL script?</title>
      <link>https://community.qlik.com/t5/QlikView/User-Input-Field-to-be-used-in-Where-Clause-of-SQL-script/m-p/441300#M164513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I figured it out.&lt;/P&gt;&lt;P&gt;Needed to state Where "INCIDENT_NUMBER" = $(mMyVar);&lt;/P&gt;&lt;P&gt;and it worked!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 May 2013 23:41:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/User-Input-Field-to-be-used-in-Where-Clause-of-SQL-script/m-p/441300#M164513</guid>
      <dc:creator />
      <dc:date>2013-05-08T23:41:52Z</dc:date>
    </item>
  </channel>
</rss>

