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: Tip: ReporterPLUS - Diagram Sorting
Topic Summary:
Created On: 24-Nov-2004 20:03
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.
 24-Nov-2004 20:03
User is offline View Users Profile Print this message


Andy Lapping

Posts: 135
Joined: 30-Jun-2004

Hi,

Ever wondered how you sort diagrams by specific names?

You can add keys in the Sort iteration, and set the name variable equal to the diagram name.

Then repeat by adding another key for the next diagram and so on.



Slides attached.

Regards,

Andreas
Report this to a Moderator Report this to a Moderator
 25-Aug-2005 14:20
User is offline View Users Profile Print this message


Michael Hasling

Posts: 7
Joined: 7-Jul-2005

Hello Andreas,

This technique is OK if you don't mind creating a model-specific template, and keeping it updated with all the model changes. What I'd like to do is attach a tag or property to each diagram and then sort by the value of that tag/property. That would mean that I don't need to change the template as I add new diagrams, or change their names.

I haven't figured out if this is possible. It seems like it's not possible to put Q language expressions in the sort keys? I can write a Q langauge expression to extract the value from the tag, it's a shame I can't use it in the template. Perhaps it easier using properties?

Regards,
Mike
Report this to a Moderator Report this to a Moderator
 8-Sep-2005 00:04
User is offline View Users Profile Print this message


Default User

Posts: 1
Joined: 9-Jun-2005

Here's the technique we used to achieve diagram ordering in our templates using a tag in the model and the sort iteration in the template.

For each diagram in the model we attach a tag called "docOrder" which we give a numeric value indicating the relative order in which we want that diagram to appear in the document.

In the sort tab for our documentation generation template, we put the following in the sort keys: $value of [tags] {$name = "docOrder"}

This will output the diagrams in docOrder order in the document.

Hope this helps,
Brian
Report this to a Moderator Report this to a Moderator
 2-Nov-2005 19:56
User is offline View Users Profile Print this message


Jessica Patla

Posts: 26
Joined: 2-Nov-2005

Well, it depends on how you want to sort. As you add in more diagrams, you would not need to update your Reporter Plus...but if you insist on adding tags, you can sort those in the Sort Tab and choose numerically...
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.