<?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: Pass parameters through URL in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/pass-parameters-through-url/m-p/921945#M59095</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Craig&lt;/P&gt;&lt;P&gt;Thanks very much for the link, it was very useful. I got the coding that is required for the HTML page at the client side.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However the problem is that I am not able to test the coding by creating a HTML page and storing it locally. when I try to &lt;/P&gt;&lt;P&gt;call that page I get an error that it cannot find the file. Is this a normal problem?&lt;/P&gt;&lt;P&gt;Also when I try to directly call(not from my ABAP prog.) the locally stored page then I get the same error. Is it that the windows explorer doesnt recognise '?' or '&amp;amp;' ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Siddhesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Apr 2005 05:28:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-04-15T05:28:12Z</dc:date>
    <item>
      <title>Pass parameters through URL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pass-parameters-through-url/m-p/921943#M59093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone tell me how to pass parameters from an ABAP to a simple HTML page?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the scenario. I am using the class cl_gui_html_viewer to display a web page. The web page is going to have a simple text-inputfield in which i have to pass a value from my ABAP program. I am appending the query value to the url of the html page(stored locally).&lt;/P&gt;&lt;P&gt;Can anybody help me with the coding required in the target HTML page to understand the parameter?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2005 12:16:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pass-parameters-through-url/m-p/921943#M59093</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-04-14T12:16:08Z</dc:date>
    </item>
    <item>
      <title>Re: Pass parameters through URL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pass-parameters-through-url/m-p/921944#M59094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have a plain HTML page that loads with a url with something like ?field=value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And you want "value" to show on your page, correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&amp;lt;html&amp;gt;
&amp;lt;body&amp;gt;

&amp;lt;script&amp;gt;
var qsParm = new Array();
function qs() {
var query = window.location.search.substring(1);
var parms = query.split('&amp;amp;');
for (var i=0; i&amp;lt;parms.length; i++) {
   var pos = parms&amp;lt;i&amp;gt;.indexOf('=');
   if (pos &amp;gt; 0) {
      var key = parms&amp;lt;i&amp;gt;.substring(0,pos);
      var val = parms&amp;lt;i&amp;gt;.substring(pos+1);
      qsParm[key] = val;
      }
   }
}
qsParm['field'] = null;
qs(); 

if (qsParm['field'])
	document.write('You selected ' + qsParm['field'] ); 

&amp;lt;/script&amp;gt;  

&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call that as test.html?field=Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's a nice link that explains it in detail: &lt;A href="http://www.eggheadcafe.com/articles/20020107.asp" target="test_blank"&gt;http://www.eggheadcafe.com/articles/20020107.asp&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2005 13:17:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pass-parameters-through-url/m-p/921944#M59094</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-04-14T13:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: Pass parameters through URL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pass-parameters-through-url/m-p/921945#M59095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Craig&lt;/P&gt;&lt;P&gt;Thanks very much for the link, it was very useful. I got the coding that is required for the HTML page at the client side.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However the problem is that I am not able to test the coding by creating a HTML page and storing it locally. when I try to &lt;/P&gt;&lt;P&gt;call that page I get an error that it cannot find the file. Is this a normal problem?&lt;/P&gt;&lt;P&gt;Also when I try to directly call(not from my ABAP prog.) the locally stored page then I get the same error. Is it that the windows explorer doesnt recognise '?' or '&amp;amp;' ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Siddhesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2005 05:28:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pass-parameters-through-url/m-p/921945#M59095</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-04-15T05:28:12Z</dc:date>
    </item>
  </channel>
</rss>

