Book a Demo

Author Topic: RTF numbering  (Read 8916 times)

gpc

  • EA User
  • **
  • Posts: 111
  • Karma: +0/-0
    • View Profile
RTF numbering
« on: November 12, 2007, 07:56:40 am »
Hi,
I'm trying to produce a simple rtf report of a package I've created. It contains a couple of sub-packages and each of these contain classes. The problem I have is that the elements (classes) seem to be numbered consecutively, i.e. not reset for each package, and either start numbering with a postfix of either -1 or 0.

For example...
Pkg
+-----Pkg1
|       +---C1
|       +---C2
|
+-----Pkg2
        +---C3
        +---C4

gives me something like...
1.0   Pkg1
1.1.0 C1
1.1.1 C2
1.1   Pkg2
1.1.2 C3
1.1.3 C4

I've followed the rtf doco and tried playing with the list override 'feature', but still can't get this to work. In fact the list override seems to reset itself to some default condition and ignores my changes. Can this be a bug?
Any help would be greatly appreciated.
(I'm using 818 btw).
Thanks

gpc

  • EA User
  • **
  • Posts: 111
  • Karma: +0/-0
    • View Profile
Re: RTF numbering
« Reply #1 on: November 14, 2007, 05:53:17 am »
Just some further info (I just don't understand what's happening). My TOC reads something like...

0.   <package>
 1.0   <package>
   1.0   <class>
   1.1   <class>
   1.2   <class>
 1.1   <package>
   1.3   <class>
   1.0.0.0   <method>
   1.0.0.1   <method>
 1.2   <package>
   0.-1.-1   <diagram>
   1.0.0   <diagram>
   1.0.1   <diagram>


All of the lists are set to start at 'one'?

Dermot

  • EA Administrator
  • EA User
  • *****
  • Posts: 591
  • Karma: +7/-0
    • View Profile
Re: RTF numbering
« Reply #2 on: November 15, 2007, 05:23:07 pm »
Hello Gary,

Regarding setting up numbering in the RTF Output; there is a section in RTF Report generator whitepaper called "Numbering" that covers this. It is  downloadable from:
http://www.sparxsystems.com.au/resources/whitepapers/index.html

I would advise that you run over this process referring to the whitepaper.

Note: I see you are using multiple packages, however there is also a internal Element numbering system for numbering trees of Elements in a single package - available from the context menu of a package: Show Level Numbering.

I hope this is of help.


Best regards,
Dermot O’Bryan

gpc

  • EA User
  • **
  • Posts: 111
  • Karma: +0/-0
    • View Profile
Re: RTF numbering
« Reply #3 on: November 15, 2007, 05:54:50 pm »
Hi Dermot,
Thanks for replying. I have read the whitepaper and it doesn't work! At least not with 818?
For example, most recently tried the increase indent - affected indentation, but not numbering?

I tried the show level numbering - you have to activate it for each sub-package. This shows my 'elements' (classes) numbered 1,2,3,4 for one package and 1,2 for the next package. However, when I generate the rtf, the numbering goes 0,1,2,3 and 4,5 - it is not being reset per package! nor is it matching the numbering indicated in the project.
Are these bugs?

jbettencourt

  • EA Novice
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
Re: RTF numbering
« Reply #4 on: December 04, 2007, 09:17:02 pm »
Same for me.  The numbering looks correct in the project browser but it doesn't translate correctly to the rtf output.

I have this in the project browser:

PackageName
1: UseCase1
2: UseCase2
1.1: Activity1 (BusinessProcess)
1.2: Activity2 (BusinessProcess)
3: UseCase3


but this in the rtf report:
PackageName
1: UseCase1
2: UseCase2
3: Activity1
4: Activity2
5: UseCase3

Can anyone help or confirm this bug?

Thanks

gpc

  • EA User
  • **
  • Posts: 111
  • Karma: +0/-0
    • View Profile
Re: RTF numbering
« Reply #5 on: December 04, 2007, 10:45:12 pm »
Hi,

I managed to get this working - it's all to do with list numbering. Each time you add a numbered item, the template editor creates a new list and so the two lists may not be related at all. Create a numbered item, say a use case (from the example) at level heading1 and make a note of it's list id, then create another numbered item for the activity diagram (again from the example) at a different level, say heading2.
Now the magic. select the heading2 item and goto main menu -> paragraph -> list numbering. Select the previously identified list and choose level 2. then goto main menu -> edit -> lists and overrides-> edit list level. Here you can select to start from 1 or 0 or whatever.
Simple eh? :-/
HTH

deepunix

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: RTF numbering
« Reply #6 on: December 16, 2007, 01:04:02 pm »
Yea.... It's really a BIG pain to generate something simple, like a list of requirements.

I can't get it work, especially when requirement elements are sitting at different levels in package hierarchy.

Is it possible to do a good automatic tabulation so a tree structure (nested packages) could be viewed nicely ?
like
Package1
___Package12
______Package123

deepunix

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: RTF numbering
« Reply #7 on: December 16, 2007, 01:07:58 pm »
it would be VERY COOL if you post here an example RTF template with proper list styles.

Here is what I want:
package >
{Pkg.Name}
element >
{Element.LevelNumber} {Element.Name}
child elements >
< child elements
< element
child packages >
< child packages
< package

deepunix

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: RTF numbering
« Reply #8 on: December 17, 2007, 11:33:33 am »
sorry to bother you again. It seems that I've solved my previous problem, at least partially.

Now the new one. Generated RTF file, when opened in OpenOffice, doesn't contain any data, but placeholders like <<package>>.<<elementname>>, etc.. MS word viewer renders it fine. Also, Google Docs renders it in same way as OpenOffice.

Could you be more interoperable ? :) Thanks.

gpc

  • EA User
  • **
  • Posts: 111
  • Karma: +0/-0
    • View Profile
Re: RTF numbering
« Reply #9 on: December 17, 2007, 04:44:10 pm »
Hi deepunix,
Re template: Sorry, but I'm still playing with RTF myself - latest suggestion from sparx was to configure numbered headings prior to use, but this still seems to give me problems.
Re fields: Someone posted about this recently. You should select search from the icons, probably at the top of this page and enter "open office", this will give a link to http://www.sparxsystems.com/cgi-bin/yabb/YaBB.pl?board=general;action=display;num=1196628700;start=2#2 which will hopefully help.

deepunix

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: RTF numbering
« Reply #10 on: December 21, 2007, 02:09:11 am »
gpc, thanks man, that solved my issue.

thorkhas

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
  • moo
    • View Profile
Re: RTF numbering
« Reply #11 on: December 21, 2007, 06:49:55 am »
Hello,

I have more or less the same issue.

I have a package with the stereotype "model document" applied to it, to which i put several packages.

In my template I have :
1. Package

1.1 elemtn package

Both share the same list, so the numbering is correct.

However I get something like this :

I.1 Package1
 I.1.1 Element 1
   I.1.1.1 Sub element 11
   I.1.1.2 Sub element 12
 I.1.2 Element 2
   I.1.2.1 Sub element 21
 I.1.3 Element 3
I.2 Package2
 I.2.1 Element 21
   I.2.1.1 Sub element 211
   I.2.1.2 Sub element 212
 I.2.2 Element 22
   I.2.2.1 Sub element 221
 I.2.3 Element 23

This shows a consistent numbering. However I want the packages to start .. well, juste with ONE number :

I Package1
 I.1 Element 1
   I.1.1 Sub element 11
   I.1.2 Sub element 12
 I.2 Element 2
   I.2.1 Sub element 21
 I.3 Element 3
II Package2
 II.1 Element 21
   II.1.1 Sub element 211
   II.1.2 Sub element 212
 II.2 Element 22
   II.2.1 Sub element 221
 II.3 Element 23

And I don't really understand the white paper... it shows in itself a result like the one i'm having, and that is not correct numbering. Correct number should be something like "I. Pck1 // I.1 Elt 1" and not "I.1 Pck1 // I.1.1 Elt 1".

My packages have a number level of 1.

gpc

  • EA User
  • **
  • Posts: 111
  • Karma: +0/-0
    • View Profile
Re: RTF numbering
« Reply #12 on: December 21, 2007, 07:02:57 am »
I've only recently been playing with model documents and one of the problems I have is that you have to pull in a package and so get an immediate indent. If you have say a package "classes" containing, well.. classes (lets say A, B and C), then the numbering should be;
I. classes
I.1 A
I.2 B
I.3 C
Make sure you're not pulling in a package containing a package and that your template uses Heading 1 for the package name. Maybe check your template - identify the list id and then check that the list level for that id is set to 1?