<?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>Question Re: How to pass runtime parameters to MySQL Query from xMII server in Product Lifecycle Management Q&amp;A</title>
    <link>https://community.sap.com/t5/product-lifecycle-management-q-a/how-to-pass-runtime-parameters-to-mysql-query-from-xmii-server/qaa-p/7445829#M36622</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are passing it in from a webpage to a SQL query here are the steps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.  Use javascript to obtain your parameter.&lt;/P&gt;&lt;P&gt;2.  Once that value is obtained used the document.applet.getQueryObject().setParam(1, value) to set the parameter value of your query.&lt;/P&gt;&lt;P&gt;3.  Then in your query you would need to make sure that in either yourfixed query or standard query that you reference this&lt;/P&gt;&lt;P&gt;parameter in your sql code.  For example if you wanted to filter on a where clause using a fixed query it would be &lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT * FROM &amp;lt;database table name&amp;gt;
    WHERE id = [Param.1]&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;In this statement I am assuming Param.1 is a number if it was a string you would need quotes '[Param.1]' around it.&lt;/P&gt;&lt;P&gt;4.  If you wanted to test this statement directly from SQL you would go to the Parameter section and enter a value for Param.1 and then run the query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The same can be done with a BLS transaction as well you would just use the Link Editor to link the new value to Param.1 in the Query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Michael Appleby on Dec 15, 2010 2:59 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Dec 2010 12:46:07 GMT</pubDate>
    <dc:creator>erik_schrampf</dc:creator>
    <dc:date>2010-12-15T12:46:07Z</dc:date>
    <item>
      <title>How to pass runtime parameters to MySQL Query from xMII server</title>
      <link>https://community.sap.com/t5/product-lifecycle-management-q-a/how-to-pass-runtime-parameters-to-mysql-query-from-xmii-server/qaq-p/7445828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please can anybody hellp in passing parameter at runtime to MySQL Query from xMII Server.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Dec 2010 12:26:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/product-lifecycle-management-q-a/how-to-pass-runtime-parameters-to-mysql-query-from-xmii-server/qaq-p/7445828</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-15T12:26:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass runtime parameters to MySQL Query from xMII server</title>
      <link>https://community.sap.com/t5/product-lifecycle-management-q-a/how-to-pass-runtime-parameters-to-mysql-query-from-xmii-server/qaa-p/7445829#M36622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are passing it in from a webpage to a SQL query here are the steps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.  Use javascript to obtain your parameter.&lt;/P&gt;&lt;P&gt;2.  Once that value is obtained used the document.applet.getQueryObject().setParam(1, value) to set the parameter value of your query.&lt;/P&gt;&lt;P&gt;3.  Then in your query you would need to make sure that in either yourfixed query or standard query that you reference this&lt;/P&gt;&lt;P&gt;parameter in your sql code.  For example if you wanted to filter on a where clause using a fixed query it would be &lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT * FROM &amp;lt;database table name&amp;gt;
    WHERE id = [Param.1]&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;In this statement I am assuming Param.1 is a number if it was a string you would need quotes '[Param.1]' around it.&lt;/P&gt;&lt;P&gt;4.  If you wanted to test this statement directly from SQL you would go to the Parameter section and enter a value for Param.1 and then run the query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The same can be done with a BLS transaction as well you would just use the Link Editor to link the new value to Param.1 in the Query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Michael Appleby on Dec 15, 2010 2:59 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Dec 2010 12:46:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/product-lifecycle-management-q-a/how-to-pass-runtime-parameters-to-mysql-query-from-xmii-server/qaa-p/7445829#M36622</guid>
      <dc:creator>erik_schrampf</dc:creator>
      <dc:date>2010-12-15T12:46:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass runtime parameters to MySQL Query from xMII server</title>
      <link>https://community.sap.com/t5/product-lifecycle-management-q-a/how-to-pass-runtime-parameters-to-mysql-query-from-xmii-server/qaa-p/7445830#M36623</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;Just for further clarification, once the query parameter is set via javascript, you will need to invoke a method to rerun the query.  Most of the applets have an update method, for example, updateChart(true) or updateGrid(true), where true indicates that the query should be rerun.  A value of false in these methods will only update the changes to the display properties.  The iCommand uses the executeCommand() method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also add additional parameters to the applet definition itself, for example,&lt;/P&gt;&lt;P&gt;&amp;lt;PARAM NAME="Param.1" VALUE="L1Speed"&amp;gt;&lt;/P&gt;&lt;P&gt;When the page loads, this value will replace Param.1 in the actual query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or, you can make it dynamic, retrieving the value from a session property or from the URL itself.  At runtime, the &lt;SPAN __jive_macro_name="PropertyName"&gt; will be replaced by the actual value.
&amp;lt;PARAM NAME="Param.1" VALUE="&lt;/SPAN&gt;"&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Diana Hoppe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Diana Hoppe on Dec 15, 2010 9:24 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Diana Hoppe on Dec 15, 2010 9:25 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Dec 2010 14:24:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/product-lifecycle-management-q-a/how-to-pass-runtime-parameters-to-mysql-query-from-xmii-server/qaa-p/7445830#M36623</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-15T14:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass runtime parameters to MySQL Query from xMII server</title>
      <link>https://community.sap.com/t5/product-lifecycle-management-q-a/how-to-pass-runtime-parameters-to-mysql-query-from-xmii-server/qaa-p/7445831#M36624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thakyou .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;your answer is really helps me but  The syntax SELECT * FROM &amp;lt;database table name&amp;gt;&lt;/P&gt;&lt;P&gt;    WHERE id = [Param.1]&lt;/P&gt;&lt;P&gt;  is not working in Oracle Database so can you please send the syntax for  Oracle database also.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Dec 2010 08:51:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/product-lifecycle-management-q-a/how-to-pass-runtime-parameters-to-mysql-query-from-xmii-server/qaa-p/7445831#M36624</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-16T08:51:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass runtime parameters to MySQL Query from xMII server</title>
      <link>https://community.sap.com/t5/product-lifecycle-management-q-a/how-to-pass-runtime-parameters-to-mysql-query-from-xmii-server/qaa-p/7445832#M36625</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;Your answer is really helps me but the syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM &amp;lt;database table name&amp;gt;&lt;/P&gt;&lt;P&gt;    WHERE id = [Param.1]&lt;/P&gt;&lt;P&gt;is not working for oracle database. So can you please send the syntax for oracle database also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&amp;amp;Reagards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RajKumar,&lt;/P&gt;&lt;P&gt;Sitacorp pvt Limited.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Dec 2010 08:53:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/product-lifecycle-management-q-a/how-to-pass-runtime-parameters-to-mysql-query-from-xmii-server/qaa-p/7445832#M36625</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-16T08:53:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass runtime parameters to MySQL Query from xMII server</title>
      <link>https://community.sap.com/t5/product-lifecycle-management-q-a/how-to-pass-runtime-parameters-to-mysql-query-from-xmii-server/qaa-p/7445833#M36626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT * FROM &amp;lt;database table name&amp;gt;
WHERE id =  '[Param.1]' &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure what happened it must of been got marked up when posted as I forgot to put the code markup around it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Dec 2010 13:26:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/product-lifecycle-management-q-a/how-to-pass-runtime-parameters-to-mysql-query-from-xmii-server/qaa-p/7445833#M36626</guid>
      <dc:creator>erik_schrampf</dc:creator>
      <dc:date>2010-12-16T13:26:48Z</dc:date>
    </item>
  </channel>
</rss>

