<?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: How to read parameter from a url in ArcGIS AppStudio Questions</title>
    <link>https://community.esri.com/t5/arcgis-appstudio-questions/how-to-read-parameter-from-a-url/m-p/1016746#M3748</link>
    <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/61305"&gt;@x_d&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What does the console.log say? Is it the expected URL? If yes, the rest is just processing the URL object.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your code looks correct and it is very similar to the sample, you can also look at the example of this on Survey123 template source code, Survey123/template/SurveyApp.qml around line 219, onOpenUrl signal. I am using Survey123 3.11 and AppStudio 4.4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Erwin&lt;/P&gt;</description>
    <pubDate>Thu, 14 Jan 2021 03:48:49 GMT</pubDate>
    <dc:creator>ErwinSoekianto</dc:creator>
    <dc:date>2021-01-14T03:48:49Z</dc:date>
    <item>
      <title>How to read parameter from a url</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/how-to-read-parameter-from-a-url/m-p/1016023#M3742</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I want to know how to open specific screen in my app , when some qrcode read from my mobile camera ,and that qrcode contains, a url (my website link) + some parameter. currently I can only open home page of my app, when i try to read qrcode through mobile camera. How can i read the parameter from the url? Please do reply it's urgent&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have tried this&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;onOpenUrl: {
    console.log("onOpenUrl:", url);

    var urlInfo = AppFramework.urlInfo(url);

    if (!urlInfo.host.length) {
        console.log("onOpenUrl parameters:", JSON.stringify(urlInfo.queryParameters, undefined, 2));
    }
}
urlInfo is blank and "onOpenUrl parameters:" consoles undefind &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2021 17:39:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/how-to-read-parameter-from-a-url/m-p/1016023#M3742</guid>
      <dc:creator>x_d</dc:creator>
      <dc:date>2021-01-12T17:39:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to read parameter from a url</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/how-to-read-parameter-from-a-url/m-p/1016746#M3748</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/61305"&gt;@x_d&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What does the console.log say? Is it the expected URL? If yes, the rest is just processing the URL object.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your code looks correct and it is very similar to the sample, you can also look at the example of this on Survey123 template source code, Survey123/template/SurveyApp.qml around line 219, onOpenUrl signal. I am using Survey123 3.11 and AppStudio 4.4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Erwin&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jan 2021 03:48:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/how-to-read-parameter-from-a-url/m-p/1016746#M3748</guid>
      <dc:creator>ErwinSoekianto</dc:creator>
      <dc:date>2021-01-14T03:48:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to read parameter from a url</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/how-to-read-parameter-from-a-url/m-p/1017471#M3758</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/204423"&gt;@ErwinSoekianto&lt;/a&gt;&amp;nbsp; Thanks for your reply. And I'm getting the expected url, but when I'm trying to split the parameter from the url then it's not working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;can you suggest me how to get separate the parameter from the url and then redirect to next page&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;onOpenUrl: {
         console.log("Open url is:"+url)//suppose the url contains 
                  "https://www.arcgis.com/home/index.html+refno=12345"
         var ref_no= url.split('=')[1]; //to grab my required parameter which is 12345
console.log("REF No Returns:"+ref_no)// it prints nothing total blank 
StackView.push("new_page.qml");        
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Jan 2021 16:37:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/how-to-read-parameter-from-a-url/m-p/1017471#M3758</guid>
      <dc:creator>x_d</dc:creator>
      <dc:date>2021-01-16T16:37:21Z</dc:date>
    </item>
  </channel>
</rss>

