Skip to Content
0
Former Member
May 15, 2008 at 08:37 AM

How can I get the value of a custom property from a resource object?

32 Views

I am trying to get the value(s) of a custom property, called "status" within a method. The method has an object of type IResource available to it.

I have tried the following:

PropertyName propName = new PropertyName("","status");
value = res.getProperty(propName).toString();

However, I am getting a NullPointerException when I try to create the PropertyName instance.

Is there a better way to get the value of a specific property from a resource object?

Thanks,

Tom