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: Printing out Implementation in ReporterPlus
Topic Summary:
Created On: 15-Aug-2008 13:47
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.
 15-Aug-2008 13:47
User is offline View Users Profile Print this message


Sean Duggan

Posts: 29
Joined: 21-Apr-2008

I have seen a handful of references to printing out text from the Implementation tab of operations in classes, usually involving someone asking how to do it and following up a day or two later with "Oh, I got that working" without any details of how they got it working. I'm doing some of my own poking, but I thought I would pose the question to the forum on the off chance someone can beat me to it.
Report this to a Moderator Report this to a Moderator
 18-Aug-2008 14:38
User is offline View Users Profile Print this message


Matthew Thomas

Posts: 15
Joined: 14-Feb-2008

Hi Sean

Have you gone off and solved it without posting your solution?

The answer is to use the "opnBody" attribute of the operation. So, if the model path is:

{Model named Project}->{Project named Project}->[containedPackages]->{Package named Default}->[classes]->{Class named class_0}->[operation]->{Operation named Message_0}

The attached template will output the operation body. It has been (re-)uploaded as a zip file.

Hope that helps.

OpnBody.zip
OpnBody.zip  (1 KB)



Edited: 19-Aug-2008 at 09:23 by Matthew Thomas
Report this to a Moderator Report this to a Moderator
 20-Aug-2008 17:53
User is offline View Users Profile Print this message


Sean Duggan

Posts: 29
Joined: 21-Apr-2008

Originally posted by: Matthew Thomas
Have you gone off and solved it without posting your solution?

No, I'd gotten distracted by other commitments. Thank you very much for your help. I'm not entirely happy with how the source displays as regular text, so I've been fiddling with finding ways to change the appearance of the source code. So far, the best way seems to be sticking it in a table cell, but I can't find a way to apply the formatting conditionally yet. Eh, I'll keep plugging away at it and see what I can manage. Thank you again for your help.
Report this to a Moderator Report this to a Moderator
 20-Aug-2008 18:48
User is offline View Users Profile Print this message


Matthew Thomas

Posts: 15
Joined: 14-Feb-2008

Hi Sean
Hope you didn't mind my minor cheek.
Regarding the formatting, I agree it isn't ideal. Are you generating Word or HTML?:
    Word: there've been postings in the past recommending an approach for outputting a unique string to delimit the field and then use a Word macro to format that field. People have been happy with the results.
    HTML: have you used ReporterPLUS's style levels? By default these correspond to heading levels, but if you're producing a HTML report then you could designate a style level (e.g. 9) to a HTML style type more loosely - you just need to define the style with the formatting you want, as a non-heading style, in a CSS file. It's not ideal but if you're disciplined in your approach it works well enough.


Edited: 23-Sep-2008 at 17:48 by Matthew Thomas
Report this to a Moderator Report this to a Moderator
 25-Aug-2008 15:20
User is offline View Users Profile Print this message


Sean Duggan

Posts: 29
Joined: 21-Apr-2008

I have no problems with cheek. I find it's the only way to get through some work days. As it stands now, I've been going with the conditional formatting (I've become fairly good at using Search/Replace wildcards to mark up our documents). Now, if only I could find a way to split diagrams onto multiple pages...
Report this to a Moderator Report this to a Moderator
 30-Jan-2009 15:00
User is offline View Users Profile Print this message


Rodrigo Batista

Posts: 1
Joined: 30-Jan-2009

Hi Sean and Matthew,

in our project we also output the implementation. We do it using the opnBody attribute as Matthew pointed out.

Since we want to have the source code in a Courier font, we assign in the ReporterPLUS template a special style that we have defined in the word template:

In ReporterPLUS: [STYLE: SOURCE CODE]<<$opnBody>>[CR][STYLE: NORMAL]

The Word template defines a style "Source code" that formats the text in CourierNew.

Best regards
Rodrigo
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.