<?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: Help in JScript in ArcPad Questions</title>
    <link>https://community.esri.com/t5/arcpad-questions/help-in-jscript/m-p/611576#M4447</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Still can't understand why It didn't work, but I have solved the problem!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have just changed my object&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ThisEvent.Object.Controls("txtIDTABLET").Text&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;with&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Layer.Forms("EDITFORM").Pages("page1").Controls("txtIDTABLET").Text&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and it worked!!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope it helps someone else...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Gustavo&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Oct 2012 12:09:13 GMT</pubDate>
    <dc:creator>GustavoBediaga</dc:creator>
    <dc:date>2012-10-17T12:09:13Z</dc:date>
    <item>
      <title>Help in JScript</title>
      <link>https://community.esri.com/t5/arcpad-questions/help-in-jscript/m-p/611574#M4445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am new in Jscript, so I have a newbie question.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I downloaded the Initiate ID script, and made some changes on it to fit our company needs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I open Arcpad, it runs the code below (called in OnOpenMap, under System Object): &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;function InitiateID()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Application.UserProperties("ID") = Application.InputBox("Insira sua matrícula", "COMAR");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Application.UserProperties("ID_TABLET") = "DESKTOP"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then when I select a feature to edit, and double click it, it shows me an error message:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"Error source unavailable&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Error description unavailable&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[Line: 4, Column: 2]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Source Text unavailable"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The script that produces the error is the following (called in OnLoad Event):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;function GetID()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; ThisEvent.Object.Controls("txtMAT_GEO").Text = Application.UserProperties("ID");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ThisEvent.Object.Controls("txtID_TABLET").Text = Application.UserProperties("ID_TABLET")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I know it must be some silly detail, but I just can't work it out.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Gustavo Bediaga&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To be clear: I want the table field MAT_GEO to be populated with the Application.UserProperties("ID"), which is set up by user filling an InputBox opened when map is open. Then I want the other's table field ID_TABLET to be populated with the text DESKTOP.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2012 19:58:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/help-in-jscript/m-p/611574#M4445</guid>
      <dc:creator>GustavoBediaga</dc:creator>
      <dc:date>2012-10-04T19:58:47Z</dc:date>
    </item>
    <item>
      <title>Re: Help in JScript</title>
      <link>https://community.esri.com/t5/arcpad-questions/help-in-jscript/m-p/611575#M4446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have been testing many different ways to solve it, but I just can't work it out.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have written the following code and called it in Onsetactive page event: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;function GetIDTAB()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Application.Messagebox(Application.UserProperties("ID_TABLET"));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; ThisEvent.Object.Controls("txtIDTABLET").Text = Application.UserProperties("ID_TABLET");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I open the form page, it shows me a message box with the right Application.UserProperties("ID_TABLET") value, but it just don't set the txtIDTABLET control with this value!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The following script error is showed:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"Script Error 80004005&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Error source unavailable&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Error description unavailable&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[Line: 4, Column: 2]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Source Text Unavailable"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyone can help me with that??&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you very much.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Gustavo Bediaga&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2012 11:28:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/help-in-jscript/m-p/611575#M4446</guid>
      <dc:creator>GustavoBediaga</dc:creator>
      <dc:date>2012-10-17T11:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: Help in JScript</title>
      <link>https://community.esri.com/t5/arcpad-questions/help-in-jscript/m-p/611576#M4447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Still can't understand why It didn't work, but I have solved the problem!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have just changed my object&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ThisEvent.Object.Controls("txtIDTABLET").Text&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;with&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Layer.Forms("EDITFORM").Pages("page1").Controls("txtIDTABLET").Text&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and it worked!!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope it helps someone else...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Gustavo&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2012 12:09:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/help-in-jscript/m-p/611576#M4447</guid>
      <dc:creator>GustavoBediaga</dc:creator>
      <dc:date>2012-10-17T12:09:13Z</dc:date>
    </item>
    <item>
      <title>Re: Help in JScript</title>
      <link>https://community.esri.com/t5/arcpad-questions/help-in-jscript/m-p/611577#M4448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Still can't understand why It didn't work, but I have solved the problem!&lt;BR /&gt;&lt;BR /&gt;I have just changed my object&lt;BR /&gt;&lt;BR /&gt;ThisEvent.Object.Controls("txtIDTABLET").Text&lt;BR /&gt;&lt;BR /&gt;with&lt;BR /&gt;&lt;BR /&gt;Layer.Forms("EDITFORM").Pages("page1").Controls("txtIDTABLET").Text&lt;BR /&gt;&lt;BR /&gt;and it worked!!!&lt;BR /&gt;&lt;BR /&gt;Hope it helps someone else...&lt;BR /&gt;&lt;BR /&gt;Gustavo&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Gustavo.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried the same script and ran into similar problems as you did.&amp;nbsp; I used the line format you provide and was able to get it to work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I couldn't figure out why the original line worked on the sample script but not on mine.&amp;nbsp; I did run into another problem and I'm curious to know if you also had a similar problem.&amp;nbsp; Once I ported the ArcPad project to my trimble unit I called up the apm and the form entry box poped up as expected. But I could not fill in the popup form entry box because I couldn't get the keyborad to come up until the form entry box cleared from the screen.&amp;nbsp; Does it behave this way with your gps unit.&amp;nbsp; I have a trimble juno sb with arcpad10.0&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Nov 2012 23:56:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/help-in-jscript/m-p/611577#M4448</guid>
      <dc:creator>RobertLugo</dc:creator>
      <dc:date>2012-11-09T23:56:37Z</dc:date>
    </item>
    <item>
      <title>Re: Help in JScript</title>
      <link>https://community.esri.com/t5/arcpad-questions/help-in-jscript/m-p/611578#M4449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi Gustavo.&lt;BR /&gt;&lt;BR /&gt;I tried the same script and ran into similar problems as you did.&amp;nbsp; I used the line format you provide and was able to get it to work.&lt;BR /&gt;I couldn't figure out why the original line worked on the sample script but not on mine.&amp;nbsp; I did run into another problem and I'm curious to know if you also had a similar problem.&amp;nbsp; Once I ported the ArcPad project to my trimble unit I called up the apm and the form entry box poped up as expected. But I could not fill in the popup form entry box because I couldn't get the keyborad to come up until the form entry box cleared from the screen.&amp;nbsp; Does it behave this way with your gps unit.&amp;nbsp; I have a trimble juno sb with arcpad10.0&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Because of the synchronization problems we are having with ArcPAD, we haven't implemented it in our field operations... We are still not sure if it will work properly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;At this moment, we are testing it in tablets computers, not GPS units, so I don't think I can help you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Gustavo&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2012 13:08:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/help-in-jscript/m-p/611578#M4449</guid>
      <dc:creator>GustavoBediaga</dc:creator>
      <dc:date>2012-11-12T13:08:17Z</dc:date>
    </item>
  </channel>
</rss>

