Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic Rhapsody (steve huntington)
Decrease font size
Increase font size
Topic Title: Reporter Plus with Rhapsody 6.0
Topic Summary:
Created On: 31-Aug-2005 13:36
Status: Read Only
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 31-Aug-2005 13:36
User is offline View Users Profile Print this message


Sue Strane

Posts: 12
Joined: 17-Jun-2005

I have been using Reporter Plus to create my own template. One section of my template will be Object Model Diagrams, but I would like them ordered in a specific way: by package, then subpackages like the following: I do not want to specify the project either

Section 1: ArchitecturePkg
(Object Model goes here)

Section 1.1: ArchitecturePkg:iCarType
(Object Model goes here)

Section 1.1.1: ArchitecturePkg:iCarType:FrontCar
(Object Model goes here)

Section 1.2: ArchitecturePkg:iVelocity
(Object Model goes here)

Section 2: (Next Package)...

Here is what I do not understand, the sort and iterations. I want to know how to exclude all other packages, and just display the Architecture package. When I choose iteration to be package, it will not show my object model. I would assume that each package needs to be a separate node. Please help!
Report this to a Moderator Report this to a Moderator
 24-Sep-2008 23:24
User is offline View Users Profile Print this message


Sean Duggan

Posts: 29
Joined: 21-Apr-2008

The odds are that you've long since solved your problem or moved on (I've seen some of your other posts) but in case someone is searching the forums (I was doing so, albeit for a different topic):

If I'm understanding your question correctly, you've got a model along the lines of

Project MyProject
* Package ArchitecturePkg
** ObjectModelDiagram OMD_1
** Subpackage iCarType
*** ObjectModelDiagram OMD_2
*** Subpackage FrontCar
**** ObjectModelDiagram OMD_3
* Package NextPkg

What you want to do is to scan all of the packages under your project (without naming the project), pick up the Architecture package specifically (if you want all packages on that level, remove the part in curly brackets on the first iteration or use ~= for a regular expression), and iterate down subpackages, displaying all object model diagrams at each level, with the headings having a similar format to the above. I don't have Rhapsody on a machine that has Internet access, so I will spell out the nodes:

Node: Text [blank in both fields] Iteration [iterates, Class: Package] Condition [Advanced: <Specific Object> model ->[project] -> [containedPackages] {$name = "ArchitecturePkg"}]
* IteratedNode: Text [Heading: Package: «$name»[CR] ]
** Node: Text [blank in both fields] Iteration[iterates, Association: objectModelDiagrams]
*** IteratedNode: Text[your image display code]
** Node: Text [blank in both fields] Iteration[iterates, Association: nestedPackages, Recursive]
*** IteratedNode: Text[Header: «concat map { ": + $name } over reverse []-> ([]; RCR: [owner]; [owner]->@RCR )» Body: ""]
**** Node: Text [blank in both fields] Iteration[iterates, Association: objectModelDiagrams]
***** IteratedNode: Text[your image display code]

^_^ Clear as mud, eh? The concatenation code I lifted off of an excellent document by Simon Morrish, still resident on this board. I'm still a little hazy on the syntax. There will be an extra : at the beginning of your name. I think you can get that off with judicious use of the replace function searching for a colon at the beginning, but I'm about to leave for the day, so I can't test that out. I didn't fill in the image display sections because a) that's extra code that I need to type out involving arcane things like guilemottes and b) most people have customizations that they add for things like captions anyhow.

(Now I just need to figure out how to spin this for my performance review... "No, I did not spend company time on idly answering old questions on the forum. I was sharpening my technical skills while creating valuable bonds within the user community that will pay off in this and future projects.")
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic Rhapsody forum.
There are currently 1 users logged in.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.