<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Changing properties of AOT objects in code</title>
	<atom:link href="http://sysdictcoder.com/blog/changing-properties-of-aot-objects-in-code/feed/" rel="self" type="application/rss+xml" />
	<link>http://sysdictcoder.com/blog/changing-properties-of-aot-objects-in-code/</link>
	<description>Dynamics Ax stuff</description>
	<lastBuildDate>Fri, 30 Apr 2010 19:01:01 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Björn</title>
		<link>http://sysdictcoder.com/blog/changing-properties-of-aot-objects-in-code/comment-page-1/#comment-9130</link>
		<dc:creator>Björn</dc:creator>
		<pubDate>Fri, 21 Aug 2009 09:22:04 +0000</pubDate>
		<guid isPermaLink="false">http://sysdictcoder.com/blog/changing-properties-of-aot-objects-in-code/#comment-9130</guid>
		<description>I haven&#039;t tried it myself, but I would expect this to fail.  Object IDs are managed by the kernel and cannot be assigned manually.  Well, maybe you can if you mess around with XPO files and import with object ID.  But generally it&#039;s off limits.</description>
		<content:encoded><![CDATA[<p>I haven&#8217;t tried it myself, but I would expect this to fail.  Object IDs are managed by the kernel and cannot be assigned manually.  Well, maybe you can if you mess around with XPO files and import with object ID.  But generally it&#8217;s off limits.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steven</title>
		<link>http://sysdictcoder.com/blog/changing-properties-of-aot-objects-in-code/comment-page-1/#comment-8996</link>
		<dc:creator>Steven</dc:creator>
		<pubDate>Tue, 18 Aug 2009 14:40:43 +0000</pubDate>
		<guid isPermaLink="false">http://sysdictcoder.com/blog/changing-properties-of-aot-objects-in-code/#comment-8996</guid>
		<description>hi,

is it possible to set the object id?

Using treenode AOTsetProperty(#PropertyId,..) returns an error.

thx</description>
		<content:encoded><![CDATA[<p>hi,</p>
<p>is it possible to set the object id?</p>
<p>Using treenode AOTsetProperty(#PropertyId,..) returns an error.</p>
<p>thx</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Natalie</title>
		<link>http://sysdictcoder.com/blog/changing-properties-of-aot-objects-in-code/comment-page-1/#comment-5404</link>
		<dc:creator>Natalie</dc:creator>
		<pubDate>Thu, 05 Feb 2009 17:42:17 +0000</pubDate>
		<guid isPermaLink="false">http://sysdictcoder.com/blog/changing-properties-of-aot-objects-in-code/#comment-5404</guid>
		<description>Hi Björn,

i have tried to change the Id of a LicenseCode with this code:

    UtilIdElements      utilId;
    TreeNode            node;
    
    #Properties
    ;
    select forupdate utilId where utilId.utilLevel == UtilEntryLevel::vap  &amp;&amp; utilid.recordType == UtilElementType::LicenseCode &amp;&amp; utilid.id == 30001
    {

        node = xUtilIdElements::getNode(utilId);

        node.AOTsetProperty(#PropertyId,50999);
        node.AOTsave();
        
        node.treeNodeRelease();
    }
    info(&quot;Ende&quot;);

in the line         node.AOTsetProperty(#PropertyId,50999); i get a Stack-Trace
Meldung (18:37:01)
Stack-Trace: Die Eigenschaft wurde nicht gefunden. (the property could not be found)



(C)\Classes\TreeNode\AOTsetProperty
(C)\Jobs\Test - line 15


Do you have any idea why it doesn&#039;t work?</description>
		<content:encoded><![CDATA[<p>Hi Björn,</p>
<p>i have tried to change the Id of a LicenseCode with this code:</p>
<p>    UtilIdElements      utilId;<br />
    TreeNode            node;</p>
<p>    #Properties<br />
    ;<br />
    select forupdate utilId where utilId.utilLevel == UtilEntryLevel::vap  &amp;&amp; utilid.recordType == UtilElementType::LicenseCode &amp;&amp; utilid.id == 30001<br />
    {</p>
<p>        node = xUtilIdElements::getNode(utilId);</p>
<p>        node.AOTsetProperty(#PropertyId,50999);<br />
        node.AOTsave();</p>
<p>        node.treeNodeRelease();<br />
    }<br />
    info(&#8220;Ende&#8221;);</p>
<p>in the line         node.AOTsetProperty(#PropertyId,50999); i get a Stack-Trace<br />
Meldung (18:37:01)<br />
Stack-Trace: Die Eigenschaft wurde nicht gefunden. (the property could not be found)</p>
<p>(C)\Classes\TreeNode\AOTsetProperty<br />
(C)\Jobs\Test &#8211; line 15</p>
<p>Do you have any idea why it doesn&#8217;t work?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Todd Hensley</title>
		<link>http://sysdictcoder.com/blog/changing-properties-of-aot-objects-in-code/comment-page-1/#comment-736</link>
		<dc:creator>Todd Hensley</dc:creator>
		<pubDate>Mon, 18 Feb 2008 13:46:49 +0000</pubDate>
		<guid isPermaLink="false">http://sysdictcoder.com/blog/changing-properties-of-aot-objects-in-code/#comment-736</guid>
		<description>Björn,

Thanks for the great article.  Nice and concise.

In my case, I also used the SqlDataDictionary.tableSynchronize method to force the index change on the underlying database.

Since I was starting with a list of table names I also found the tablename2id function to be very handy.

twh</description>
		<content:encoded><![CDATA[<p>Björn,</p>
<p>Thanks for the great article.  Nice and concise.</p>
<p>In my case, I also used the SqlDataDictionary.tableSynchronize method to force the index change on the underlying database.</p>
<p>Since I was starting with a list of table names I also found the tablename2id function to be very handy.</p>
<p>twh</p>
]]></content:encoded>
	</item>
</channel>
</rss>
