![]() |
Telelogic Rhapsody (steve huntington) | ![]() |
Topic Title: ReporterPLUS Q language number increment question Topic Summary: Created On: 2-Aug-2007 18:51 Status: Read Only |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
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. |
|
![]() |
|
![]() |
|
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 |
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.