This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

DEVELOPERS FORUM - Getting Type from TypeId

guyIncognito - Monday, January 11, 2010 11:04 AM:

I've been given a C# Server method to fix up and, being quite new to Aras, I'm at a loss.

The method expects the context item (this) to have its Type attribute populated, but in several cases only the TypeId attribute is present.

Typically, I would just do a get with the TypeId but in this situation this isn't possible.  This method is called on the OnBeforeGet events of the ItemTypes I need to query.  This results in an infinite recursion.

Am I missing something obvious?  Any help would be appreciated.

Thanks



guyIncognito - Monday, January 11, 2010 6:02 PM:

The solution is obvious to me now:  Query the ItemType table.

<AML>

 <Item action="get" id="typeId"/>

</AML>