<?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 arcgis online using sessionStorage getID in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/arcgis-online-using-sessionstorage-getid/m-p/115109#M5429</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;I have successfully launched an&amp;nbsp;application from IIS However the session isn't working the same way as it was in the javascript widget.&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Here is the break down from original javascript widget:&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;1. Form.html {this is the html page that houses the unique id that is being shared through a session to the JavaScript in the editor widget}:&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;EM style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;var sample = "{{data}}";&lt;/EM&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;EM style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;sessionStorage.setItem("sample", sample);&lt;/EM&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;2. JavaScript widget:&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;EM style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;var sample1 = sessionStorage.getItem("sample")&lt;/EM&gt;&amp;nbsp;&lt;/P&gt;&lt;UL style="background-color: #ffffff; border: 0px; font-size: 14px; padding: 0px 0px 0px 30px;"&gt;&lt;LI style="border: 0px; font-weight: inherit; font-size: 14px; margin: 0.5ex 0px;"&gt;var query = new Query();&lt;/LI&gt;&lt;LI style="border: 0px; font-weight: inherit; font-size: 14px; margin: 0.5ex 0px;"&gt;qyery.where = "Unique_ID'" +sample1 +"'";&lt;/LI&gt;&lt;LI style="border: 0px; font-weight: inherit; font-size: 14px; margin: 0.5ex 0px;"&gt;query.outFields = ["*"];&lt;/LI&gt;&lt;LI style="border: 0px; font-weight: inherit; font-size: 14px; margin: 0.5ex 0px;"&gt;query.returnGeometry =true;&lt;/LI&gt;&lt;/UL&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;This successfully grabs the records based on the unique id provided in the form.html&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Web app builder:&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;1. index html:&amp;lt;between script tags&amp;gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;EM style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;var sample1 = sessionStorage.getItem("sample")&lt;/EM&gt;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;2. config.JSON&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;included Unique_ID = 'sample1'&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;This is being referenced 6 times&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;This doesn't not grab the sessionStorage.&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Can you help me?&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Thanks in advance,&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Brendan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Sep 2016 16:09:18 GMT</pubDate>
    <dc:creator>BrendanDuffy</dc:creator>
    <dc:date>2016-09-06T16:09:18Z</dc:date>
    <item>
      <title>arcgis online using sessionStorage getID</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcgis-online-using-sessionstorage-getid/m-p/115109#M5429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;I have successfully launched an&amp;nbsp;application from IIS However the session isn't working the same way as it was in the javascript widget.&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Here is the break down from original javascript widget:&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;1. Form.html {this is the html page that houses the unique id that is being shared through a session to the JavaScript in the editor widget}:&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;EM style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;var sample = "{{data}}";&lt;/EM&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;EM style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;sessionStorage.setItem("sample", sample);&lt;/EM&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;2. JavaScript widget:&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;EM style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;var sample1 = sessionStorage.getItem("sample")&lt;/EM&gt;&amp;nbsp;&lt;/P&gt;&lt;UL style="background-color: #ffffff; border: 0px; font-size: 14px; padding: 0px 0px 0px 30px;"&gt;&lt;LI style="border: 0px; font-weight: inherit; font-size: 14px; margin: 0.5ex 0px;"&gt;var query = new Query();&lt;/LI&gt;&lt;LI style="border: 0px; font-weight: inherit; font-size: 14px; margin: 0.5ex 0px;"&gt;qyery.where = "Unique_ID'" +sample1 +"'";&lt;/LI&gt;&lt;LI style="border: 0px; font-weight: inherit; font-size: 14px; margin: 0.5ex 0px;"&gt;query.outFields = ["*"];&lt;/LI&gt;&lt;LI style="border: 0px; font-weight: inherit; font-size: 14px; margin: 0.5ex 0px;"&gt;query.returnGeometry =true;&lt;/LI&gt;&lt;/UL&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;This successfully grabs the records based on the unique id provided in the form.html&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Web app builder:&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;1. index html:&amp;lt;between script tags&amp;gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;EM style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;var sample1 = sessionStorage.getItem("sample")&lt;/EM&gt;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;2. config.JSON&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;included Unique_ID = 'sample1'&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;This is being referenced 6 times&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;This doesn't not grab the sessionStorage.&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Can you help me?&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Thanks in advance,&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Brendan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Sep 2016 16:09:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcgis-online-using-sessionstorage-getid/m-p/115109#M5429</guid>
      <dc:creator>BrendanDuffy</dc:creator>
      <dc:date>2016-09-06T16:09:18Z</dc:date>
    </item>
  </channel>
</rss>

