cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

Translate the entire conversation x

How to get Requirement Description?

Selva
1-Visitor

How to get Requirement Description?

Hi ,

When I use the below code I am getting some error?

Requirement requirement = (Requirement ) newObject;

HTMLText htmtext = requirement.getDescription();

htmltext.getPlainText() gives NullPointerException()

or

htmltext.getRichText() gives MalFormedURLException().

,

How to get the description of the Requirement object?

Have any ideas?

Thanks,

selsium

1 REPLY 1
Selva
1-Visitor
(To:Selva)

Hello folks,

Finally i found the answer to this question.....

String str = RequirementUtilityHelper.getDescription(requirementObject);

will return the string of the description in HTML format...

Announcements

Top Tags