<?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 Re: Passing input from qlikview application for a stored proc in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Passing-input-from-qlikview-application-for-a-stored-proc/m-p/1297952#M404904</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It could be that your approach missed the name of the table from your inputs, like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Input:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;Input('Enter SiteID Value', 'Input box') as SiteID,&lt;/P&gt;&lt;P&gt;Input('Enter StartDate Value', 'Input box') as value1_date,&lt;/P&gt;&lt;P&gt;Input('Enter EndDate Value', 'Input box') as value2_date&lt;/P&gt;&lt;P&gt;autogenerate 1;&lt;/P&gt;&lt;P&gt;Let vSiteID = peek('SiteID',0,'Input');&lt;/P&gt;&lt;P&gt;Let vFromDate = peek('value1_date',0,'Input');&lt;/P&gt;&lt;P&gt;Let vDateTo = peek('value2_date',0,'Input');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;trace '$(vSiteID)';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and your variables are empty because of this. The next thing would be to check the content of the variables with a trace-statement like above demonstrated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 May 2017 06:46:39 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2017-05-19T06:46:39Z</dc:date>
    <item>
      <title>Passing input from qlikview application for a stored proc</title>
      <link>https://community.qlik.com/t5/QlikView/Passing-input-from-qlikview-application-for-a-stored-proc/m-p/1297951#M404903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am new to Qliview and I am trying to pass variables to a storedproc but it is not returning the expected result set.&lt;/P&gt;&lt;P&gt;Here is my proc:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create procedure CETCompleted @siteid varchar(10),@startdate datetime,@enddate datetime as&lt;/P&gt;&lt;P&gt;begin&lt;/P&gt;&lt;P&gt;set nocount on;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select phonedata as C from queue where siteid=@siteid and submitted between @startdate and @enddate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select emaildata as E from queue where siteid=@siteid and &lt;SPAN style="font-size: 13.3333px;"&gt; submitted between @startdate and @enddate&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select textdata as T from queue where siteid=@siteid and &lt;SPAN style="font-size: 13.3333px;"&gt; submitted between @startdate and @enddate&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;end&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my qlikview script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ODBC Connect to ServerName;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;Input('Enter SiteID Value', 'Input box') as SiteID,&lt;/P&gt;&lt;P&gt;Input('Enter StartDate Value', 'Input box') as value1_date,&lt;/P&gt;&lt;P&gt;Input('Enter EndDate Value', 'Input box') as value2_date&lt;/P&gt;&lt;P&gt;autogenerate 1;&lt;/P&gt;&lt;P&gt;Let vSiteID = peek('SiteID',0,'Input');&lt;/P&gt;&lt;P&gt;Let vFromDate = peek('value1_date',0,'Input');&lt;/P&gt;&lt;P&gt;Let vDateTo = peek('value2_date',0,'Input');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL EXECUTE [dbo].[CETCompleted] @siteid='$(vSiteID)',@startdate='$(vFromDate)',@EndDate='$(vDateTo)'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when I load the script It prompts for siteid, then startdate then end data and after succesfully entering them I get the below error:&lt;/P&gt;&lt;P&gt;I am only seeing field C, siteid, value_date,value2_date but not E and T which are in my storedproc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All I am trying to do is display values C,E,T in the report. Is this the report &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However if i break the actual stored proc into 3 one for c, one for e, one for t then I am able to see all 3 fields and able to put them in a table box. Why wouldnt this show all fields with one stored proc?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2017 21:43:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Passing-input-from-qlikview-application-for-a-stored-proc/m-p/1297951#M404903</guid>
      <dc:creator />
      <dc:date>2017-05-18T21:43:49Z</dc:date>
    </item>
    <item>
      <title>Re: Passing input from qlikview application for a stored proc</title>
      <link>https://community.qlik.com/t5/QlikView/Passing-input-from-qlikview-application-for-a-stored-proc/m-p/1297952#M404904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It could be that your approach missed the name of the table from your inputs, like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Input:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;Input('Enter SiteID Value', 'Input box') as SiteID,&lt;/P&gt;&lt;P&gt;Input('Enter StartDate Value', 'Input box') as value1_date,&lt;/P&gt;&lt;P&gt;Input('Enter EndDate Value', 'Input box') as value2_date&lt;/P&gt;&lt;P&gt;autogenerate 1;&lt;/P&gt;&lt;P&gt;Let vSiteID = peek('SiteID',0,'Input');&lt;/P&gt;&lt;P&gt;Let vFromDate = peek('value1_date',0,'Input');&lt;/P&gt;&lt;P&gt;Let vDateTo = peek('value2_date',0,'Input');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;trace '$(vSiteID)';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and your variables are empty because of this. The next thing would be to check the content of the variables with a trace-statement like above demonstrated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 May 2017 06:46:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Passing-input-from-qlikview-application-for-a-stored-proc/m-p/1297952#M404904</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2017-05-19T06:46:39Z</dc:date>
    </item>
  </channel>
</rss>

