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 the "Name" property of an Item in server method

walekarsa - Wednesday, November 18, 2009 7:04 AM:

Hi All,

I am trying to update a property "percent_compl".  of Activity in Project managment  based on the property "current_status of the Document. If it is Released then the Activity should show "percent_compl" as 100 %.

I have tried to fetch the property using the API getPropertyitem , which is of Aras.IOM.Item type. This will return an Item. How do I get the "name property of this item, which can then be used in the If then  statment.

Hoping for your reply.  



tstickel - Wednesday, November 18, 2009 9:57 AM:

If the getPropertyItem returned an item into "returnedItem", then the statement:

Dim returnedName As String = returnedItem.getProperty("name")

will set returnedName to the value of the "name" property of this item (assuming "returnedItem" has a property called "name")