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: ReporterPLUS Q language number increment question
Topic Summary:
Created On: 2-Aug-2007 18:51
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.
 2-Aug-2007 18:51
User is offline View Users Profile Print this message


carlos ramos

Posts: 17
Joined: 1-Feb-2007

I'm trying to do the following in ReporterPLUS:

View Packet 1
View Packet 2
View Packet 3
View Packet n
...

Is there a way to get this by using the Q-language? I'm just trying to assign a number to each architecture view packet as it iterates through each package. Thanks for the help.
Report this to a Moderator Report this to a Moderator
 13-Aug-2007 14:42
User is offline View Users Profile Print this message


Simon Morrish

Posts: 127
Joined: 17-May-2005

Hi

The simple answer is no, but there are always workarounds!

If I understand you correctly, you have bunch of model elements (View Packets) which are not numbered in the model, but you want to assign them numbers in the report output? I think these are your options:

[list=1]
[*]Use headings to number the elements. (This will number your elements in a Word report, but not in HTML, and of course the elements will not necessarily have the same number the next time you report them!)
[*]Add an "index" tag to each element and use this to sort and number the elements in the report. If you call the tag "index" then you can access its value using the Q expression [FONT=Courier New]$value of [tags] {$name = "index"}[/FONT].
[*]You could also add a property instead of a tag. Frankly I'm not sure which is more appropriate!
[/list]

(Incidentally, Q Language can't directly help you create your index number because it has no concept of traditional variables that you can set/increment/etc.)

Let me know if that helps, or if you'd like any further explanation of my suggestions above.

best regards,
Simon

-------------------------
Simon Morrish
simon.morrish@eu.panasonic.com
http://panasonic.co.uk
Panasonic ideas for life
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.