Property "ownedDiagram"

Uploaded report templates and discussions about reports.

Moderators: sarawut_w, Moderators

Property "ownedDiagram"

Postby nolte » Tue Jan 10, 2017 4:53 am

Hi Community,

I am generating HTML reports from UML models and I have some problems with the property 'ownedDiagram'. There are some elements that have the property 'ownedDiagram' and some other elements don't. I will have the owned diagrams for those elements that do have them. But most of all I get a warning "no such property" für those ones that don't own diagrams.

Does anybody know how to suppress this warning? Especially how to differ elements based on their properties.

Thanks in advance,
Siegfried
nolte
Forum Newbie
Forum Newbie
 
Posts: 1
Posts Rating:0
Joined: Wed Jan 19, 2011 8:09 am

Re: Property "ownedDiagram"

Postby sarawut_w » Wed Jan 11, 2017 2:27 am

Dear Siegfried,

You would rather check whether your element has the ownedDiagram property or not.
It could be done by using $report.hasProperty($element, "propertyName")
For example:
Code: Select all
#foreach($e in $elements)
   #if($report.hasProperty($e,”ownedDiagram”))
      $e.name :: $e.ownedDiagram
   #end
#end


Best regards,
Sarawut W.
Support Engineer
sarawut_w
Forum Expert
Forum Expert
 
Posts: 202
Posts Rating:17
Joined: Thu Jun 23, 2011 12:47 am


Return to Report Engine

Who is online

Users browsing this forum: No registered users and 0 guests