Tuesday 17 June 2008

AgilePoint Snippet - Get/Set Custom Attributes

In a C# snippet shape, or in aspx code you can use the following to Get and/or Set a Custom Attribute.

if (api.GetCustomAttr(pi.WorkObjectID,"MyAttrName") == null)

{
api.SetCustomAttr(pi.WorkObjectID,"MyAttrName","My Custom Attr Value");
}

No comments: