<?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 Using VBS to edit records in other features in ArcPad Questions</title>
    <link>https://community.esri.com/t5/arcpad-questions/using-vbs-to-edit-records-in-other-features/m-p/442486#M3185</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Based on the value of a field in one feature, I am trying to alter records (behind the scenes) in associated features.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I got this to work fine, but there is some clean up that I can't figure out.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Basically, when I change the Unique ID of a parent feature, I want the stored UID values in associated features (it's children) to adjust as well. So as I was creating this script, I made the value of the UID in both the parent and the child objects visible attributes - so that I could actually see the number change take place.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This works fine and dandy: I see it happen. But then when I enter the child feature form and take a look at the table, it still has the old value. If I DON'T open the child feature, but close Arcpad, then reopen Arcpad, then open the child feature, the value is now null!?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And if I leave the feature alone altogether, then when I take my next step (which is to export shapes to CAD), the values are as I hoped: changed to match the parent.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now, the child features are only to be opened via a launch edit button from the parent feature form (which then re-establishes the UID association), so, technically, I don't have much to worry about. But if anyone tries to manually edit one of my child features; bang, that is where the problem will occur. Because the stored Parent UID value reverts to the originally set value (or null - when Arcpad has been shut down in between these processes).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So what the heck is going on?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And what can I do to lock in the edited value?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Aaron&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 24 Mar 2013 21:13:33 GMT</pubDate>
    <dc:creator>AaronAmbrose</dc:creator>
    <dc:date>2013-03-24T21:13:33Z</dc:date>
    <item>
      <title>Using VBS to edit records in other features</title>
      <link>https://community.esri.com/t5/arcpad-questions/using-vbs-to-edit-records-in-other-features/m-p/442486#M3185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Based on the value of a field in one feature, I am trying to alter records (behind the scenes) in associated features.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I got this to work fine, but there is some clean up that I can't figure out.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Basically, when I change the Unique ID of a parent feature, I want the stored UID values in associated features (it's children) to adjust as well. So as I was creating this script, I made the value of the UID in both the parent and the child objects visible attributes - so that I could actually see the number change take place.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This works fine and dandy: I see it happen. But then when I enter the child feature form and take a look at the table, it still has the old value. If I DON'T open the child feature, but close Arcpad, then reopen Arcpad, then open the child feature, the value is now null!?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And if I leave the feature alone altogether, then when I take my next step (which is to export shapes to CAD), the values are as I hoped: changed to match the parent.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now, the child features are only to be opened via a launch edit button from the parent feature form (which then re-establishes the UID association), so, technically, I don't have much to worry about. But if anyone tries to manually edit one of my child features; bang, that is where the problem will occur. Because the stored Parent UID value reverts to the originally set value (or null - when Arcpad has been shut down in between these processes).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So what the heck is going on?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And what can I do to lock in the edited value?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Aaron&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Mar 2013 21:13:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/using-vbs-to-edit-records-in-other-features/m-p/442486#M3185</guid>
      <dc:creator>AaronAmbrose</dc:creator>
      <dc:date>2013-03-24T21:13:33Z</dc:date>
    </item>
  </channel>
</rss>

