Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6412

HTML5 session variables into HANA SQLScript

$
0
0

Hello,

 

I've been modifying my HTML5 code to work with HANA.


My connection and controls have been working great, but now I need to pass session variables to a "SqlDataSource" control which gets the variable as '@variable', and I keep getting a SQL syntax error because of this.


I NEED to use an asp.net "SqlDataSource" control in order to make some parts of my program work.

 

Please help...

 

  <asp:SqlDataSourceID="SqlDataSource3"runat="server"

        providerName="<%$ ConnectionStrings:HANAConnectionString.providerName %>"

        ConnectionString="<%$ ConnectionStrings:HANAConnectionString %>"

        SelectCommand="select T0.&quot;U_DtlCode&quot;, T0.&quot;U_ParentID&quot;,      T1.&quot;U_DtlName&quot;,                      T0.&quot;U_code2&quot;        

                                    from &quot;DB_TEST&quot;.&quot;@EMEVD&quot; T0 inner join    &quot;DB_TEST&quot;.&quot;@EMETD&quot; T1 on T0.&quot;U_DtlCode&quot; = T1.&quot;U_DtlCode&quot;

                                    where T0.&quot;U_TransNum&quot; = @VAR

                                    order by    SUBSTRING(T0.&quot;U_DtlCode&quot;,7,2),substring(CONCAT(T0.&quot;U_DtlCode&quot;,'.00.00.00.00.00.00.00.00.00.00.00'),1,32)">

        <SelectParameters>

            <asp:SessionParameterName="VAR"SessionField="VAR"DefaultValue="2"/>

        </SelectParameters>

  </asp:SqlDataSource>


Viewing all articles
Browse latest Browse all 6412

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>