I have tried the sample below with slight change.

First, I think, you haven't got a EDT named MYCODEFIELD. Change it to a name which is already in your AOT Extended Data Type treenode. May I suggest ABCPercentA. See AOTsetProperties() job below

static void AOTsetProperties(Args _args)
{
   TreeNode _treenode;
   str _properties;
   ;

_treenode = Infolog.findNode(@'\\Data Dictionary\Extended Data Types\ABCPercentA');


if (_treenode)
{
_properties = _treenode.AOTgetProperties();
// Box::info(Global::setProperty(_properties, "Alignment", "Right"));
_treenode.AOTsetProperties(Global::setProperty(_properties, "Alignment", "Right"));
_treenode.AOTsave();
}
else
{
Box::info("No extended data type found");
}



}



It works for me.


I added the ability to set the property in the AOT and save it.
Go and look into the ABCPercentA EDT and see the property Alignment, if it is now "Right". I hope so.


:-)



From: "byteway_so" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: [development-axapta] Re: Adjustment
Date: Thu, 30 Oct 2003 13:38:19 -0000

Thank you for you advise, but I can't seem to find that property.
This is what I use:

TreeNode _treenode;
str _properties;
;

_treenode = Infolog.findNode("\\Data Dictionary\Extended Data
Types\MYCODEFIELD");
if (_treenode) {
_properties = _treenode.AOTgetProperties();
Global::setProperty(_properties, "Adjustment", "Right");
} else { Box::info("No extended data type found"); }

And I keep getting the message "No extended data type found"...
But even if I look for "\\Data Dictionary\Extended Data
Types\ABCBase" I can't find it...
And the online help says only something about the xinfo...



_________________________________________________________________ Få alle de nye og sjove ikoner med MSN Messenger http://messenger.msn.dk/



Yahoo! Groups Sponsor ADVERTISEMENT
Click Here!


Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

Reply via email to