Was wondering if anyone knows of a slick way to copy the value from an Attr DXL attribute to another attribute, say a text or string. I've got a tool already that will copy attribute values from one to another, but it does not appear to allow copying from Attr DXL. |
Re: Copy the value of Attr DXL |
Re: Copy the value of Attr DXL Until then the value is null. That is likely why it appears he is not able to copy the value. AAI Services, Textron dpechacek@sc-aaicorp.com David.Pechacek@gmail.com |
Re: Copy the value of Attr DXL dpechacek - Thu Apr 16 08:29:19 EDT 2009 To be really sure of this you could of course in DXL first set the DXL attribute value to be (string null) or whatever type your DXL attribute is. |
Re: Copy the value of Attr DXL SystemAdmin - Thu Apr 16 08:38:25 EDT 2009 AAI Services, Textron dpechacek@sc-aaicorp.com David.Pechacek@gmail.com |
Re: Copy the value of Attr DXL SystemAdmin - Thu Apr 16 03:42:22 EDT 2009 |
Re: Copy the value of Attr DXL SystemAdmin - Thu Apr 16 03:42:22 EDT 2009
Dears, AttrDef ad = find(current Module, attrDXLName)
|
Re: Copy the value of Attr DXL vasgyuszi - Tue Jun 14 07:55:40 EDT 2011
Dears, AttrDef ad = find(current Module, attrDXLName)
The variable "attrDXLName" is pre-defined and has meaning ONLY when executed inside an Attr-DXL code. When run on-demand, such as this example, its of course null which explains your error message (it is parameter #2). Perhaps you need to do this: AttrDef ad = find(current Module, "MyAttrDXLName")
for obj in mod do
{ obj."MyTextAttr" = obj."MyAttrDXL"
}
|