{"id":772,"date":"2011-05-27T20:20:55","date_gmt":"2011-05-28T01:20:55","guid":{"rendered":"http:\/\/anvil-of-time.com\/wordpress\/?p=772"},"modified":"2021-03-10T20:21:41","modified_gmt":"2021-03-11T01:21:41","slug":"powerbuilder-gotcha-modify-parent-datawindow-after-a-getchild","status":"publish","type":"post","link":"https:\/\/anvil-of-time.com\/powerbuilder\/powerbuilder-gotcha-modify-parent-datawindow-after-a-getchild\/","title":{"rendered":"PowerBuilder &#8216;Gotcha&#8217; &#8211; Modify Parent Datawindow after a Getchild"},"content":{"rendered":"<p>If your window makes use of a datawindowchild for whatever reason remember that if you modify the parent datawindow the reference to the child will (most likely) be lost.  In the PB Help it states: <em><strong>If a property causes this behavior, this is noted in its description in Chapter 3, &#8220;DataWindow Object Properties.&#8221;<\/strong><\/em> but I have been unable to find any of these notes.  You might as well check if the datawindowchild has any rows in it and if it doesn&#8217;t, redo the Getchild and then re-populate the datawindowchild (retrieve, rowscopy, etc.).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If your window makes use of a datawindowchild for whatever reason remember that if you modify the parent datawindow the reference to the child will (most likely) be lost. In the PB Help it states: If a property causes this behavior, this is noted in its description in Chapter 3, &#8220;DataWindow Object Properties.&#8221; but I&hellip;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[21,12],"_links":{"self":[{"href":"https:\/\/anvil-of-time.com\/wp-json\/wp\/v2\/posts\/772"}],"collection":[{"href":"https:\/\/anvil-of-time.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/anvil-of-time.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/anvil-of-time.com\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/anvil-of-time.com\/wp-json\/wp\/v2\/comments?post=772"}],"version-history":[{"count":5,"href":"https:\/\/anvil-of-time.com\/wp-json\/wp\/v2\/posts\/772\/revisions"}],"predecessor-version":[{"id":1951,"href":"https:\/\/anvil-of-time.com\/wp-json\/wp\/v2\/posts\/772\/revisions\/1951"}],"wp:attachment":[{"href":"https:\/\/anvil-of-time.com\/wp-json\/wp\/v2\/media?parent=772"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/anvil-of-time.com\/wp-json\/wp\/v2\/categories?post=772"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/anvil-of-time.com\/wp-json\/wp\/v2\/tags?post=772"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}