Enterprise Architect Document Generator creates report with inconsistent headings - enterprise-architect

I have a question regarding the creation of documents in Enterprise Architect v14.0.1423.
When I create documents via the standard "Model Report" (regardless if with or without TOC and/or Style Sheet) I end up with headings not following my package structure: the 1st element in the 9th package ends up as a level 1 heading (same as the previous 9 packages). The behaviour is only observed when I select the option Skip root package.
Stakeholder Type 1 is incorrectly formatted as Heading 1 as chapter 10 instead of Heading 2 as chapter 9.2 (see figures below). In addition, it does not matter if have included the diagram or not.
My question is: do I have to use a different model report template when creating documents when I want to skip the root package? (If this is a bug, I will certainly open a bug report with Sparx.)
Below you find the package and element structure:
These are the option used for generating the document:
This is the TOC of the generated document:

This is confirmed to be a bug by Sparx which is filed under id #18120944. The problem also exists for version 14.1.1427.

Related

How to get the mapping relation between xbrl tag and name shown in financial statement?

The name shown in financial statement and xbrl tag name are different,take apple's 2019 financial statement as example.
apple 2019 financial statement
Click sections--financial statement--consolidated statements of operations and move mouse at the 274,515 ,
You can see
Tag
us-gaap:RevenueFromContractWithCustomerExcludingAssessedTax
Fact
274,515,000,000
The tag name is RevenueFromContractWithCustomerExcludingAssessedTax in xbrl term, it is called as Total net sales, maybe there exists a table mapping every xbrl tag name with name shown on financial statements,where can i get it?
Yes, there is a mapping between tag names (they are called concepts) and user-readable English names (they are called labels) in what is called the label linkbase.
You can click on the right arrow in the pop-up window that can be seen on your screenshot, which will display all the associated labels.
However, there is no guarantee that these labels match exactly what is seen on the HTML page, because this is Inline XBRL and the text surrounding the tagged data is completely free, as opposed to the tabular view an XBRL processor would automatically reconstruct from the taxonomy attached to the report. Ideally, the filings should be created in a way that the two should match, though.
In this case, "Total net sales" would be a Total label (i.e., used when the data is displayed in context as a total), but it does not seem that this label appears in the label linkbase here, at least as shown in the window.
Regarding a large, flat, tabular representation of the entire label linkbase of a filing: I did not manage to find it for this specific (version of the) viewer, however there are many XBRL processors that do offer this (e.g., export to CSV or Excel).

Jasper Reports does not find correctly the pages in TOC (table of contents) when there are duplicate titles

I hope you are very well.
Currently I am developing a report be means of Jasper Reports and Java, for doing it I am using two groups, to group the elements of the data source.
DataSoruce returned by the database has the follows structure (it has two columns):
Group 1 | SubGroup A
Group 2 | SubGroup A
I am showing the result in the jasper file with the follows way:
->Group 1
SubGroup A
->Group 2
SubGroup A
Like you can see, there are two groups: Group 1 and 2, and each group has a subgroup, for this example is the same subgroup (SubGroup A).
Every groups were configurated for appearing in the Toc (table of contents report). I used iReport tool, and configured each group to has a Hiperlink and a Bookmark Level. (Groups with 1 Bookmark level and SubGroups with 2 Bookmark level).
Every works fine, the TOC appears correctly and when I select one element in TOC index, the document arrived me to correspondent page, however there is a problem, when the name of Group, or SubGrups, is the same each other (it has already appeared in the TOC, its name is duplicated), the Pdf file does not arrived correct page, takes me to the first page they have that title.
Does someone know how can I solve this problem.
Thanks for your help.
I was able to solve the problem.
1.- I created an variable RANDOM with the expression:
new Random().nextInt(1000)
2.- In the Anchor Name Expression I have called the variable RANDOM and behind it I wrote an *.
$F{TITLE} + "* " + $V{RANDOM}
3.- In the TOC report I added the follows expression each $F{label}, like this:
( $F{label}.contains("*") ? $F{label}.substring( 0, $F{label}.indexOf("*" )) : $F{label} )
And it is all, each title will be a unique name and the index will have the link correct for each page.

Report Book printing 97 unwanted copies

Current state: Report book that prints 20680 pages
The issue: Report book is printing 98 times a report-element designated in the Content section (I've actually done the math)
Rundown:
Prototype_V2.jrxml (content report) --- report which has three subreports, all connected to the main by a single parameter
When compiled and run, this .jrxml produces 211 pages of various content, in other words, working 100% as the designer intended
Book_V3.jrxml (book report)--- latest "version" of the report book template (green wave template) that ought to incorporate a ToC (primarily) and cover pages (secondary)
I've tried:
Putting for some unearthly reason the content report inside the cover element of the book report. Result: only prints once, but ToC is all messed up.(It's indexing literally every page of the content report, therefore diminishing its' purpose)
Various report evaluation times for the content report inside the "Content" section. Result: Only on evaluation time "Report", does the element print, but it prints itself 98 times, 97 more than wanted.Otherwise, it won't even print.
I've tried, and failed to, add parameters between the Book and its' content report. For some reason, they just don't see each other at all.
I've tried giving the book report dataset empty rows, and not actual rows from the MySQL from which I'm getting the data, but then it won't print a thing. ("Document is empty" screen)
Cut out the subreports from the content report so I was left with a 6 page skeleton, and still the book report printed 98x6+3 pages. Ridiculous
The expectation:
Report Book with one page for front cover, as many pages as needed for ToC with proper grouping (and not linking from the ToC to each separate page of a report), ONE PRINT OF content report (which is already designed and tuned), and one page for back cover...
I know I haven't deliberately told the bastard to print one extra content report, much less 97 extra...
Issue resolved:
1. The 97 + 1 copies were produced because, unknowingly, I entered the same query for the book report as it is in the content report (98 is actually the number of unique groups my content report generated). Issue resolved with providing a KISS query of "select 1;" to the book dataset (because I'm not using the book for anything other than ToC and customization of cover pages)
((Why having the same query for book and content report produced a multiplication of this magnitude is still unknown to me, but the important thing is that it's no longer an issue))
2. ToC issue of every page being indexed resolved when I realized that content report generated a unique bookmark for every page of print, regardless of whether it is the first page of the subgroup or not.
Issue resolved with addition of a second text field underneath the first for both of my groups (of same size,color,font...) that has "print repeated values" flag checked off, and that second field being bookmarked and referenced.
This way content report still prints visually on every page both group names but the book report is referencing the "other" text field, that prints only on first occurence, for its' ToC.
Hopefully this will help someone in the future struggling with similar issues.

Defining counts of unique configurations for items in the same column

Good Afternoon All. I have a report in which I'm trying to define unique product configurations for our products based upon a common "PhantomParent". Below I've included a table of how our data is formatted and what I'm attempting to have the report show.
Database Table Example
In the attached table's image I want to define the Stock Code Configurations for each X0908P part # (in the attached example the only difference is the spring used, 8017 vs 8019).
I also have other X0908P configurations that are not shown here. At the end of the day I would like a report that is formatted like the following (I've included additional examples of configurations in the results below):
Report output
Any ideas on how to get this done?

Multilevel list skip numbering

I have created a multilevel list for being able to reference to table rows in a word document. Multilevel list thread
With the multilevel list I struggle to skip numbers. The table numbering is divided into two levels. NNN and NNNL, where N: Number and L:Letter.
Example:
1. Header 1
101
101a
2. Header 2
201a
The numbering below header 1 works fine, but header 2 does NOT work.
The numbering are used for clauses in a document, so in case a clause is divided into different conditions, the class NNNL is used. However, as it is now, it needs the NNN for create NNNL.
I have tried using 'Set numbering value' - 'Continue from previous list' - 'Advance value (skip numbers)', following this solution suggestion, but following this guide still results in the addition of a level NNN before (see below for examplification).
2. Header 2
201 <- This is added
201a
Can't I skip a numbering value of a list level above the item I wish to change?
Edited:
Also, when having a subheader I face issues. If the first clause after a subheader is divided into subclauses, I get
101
1.1 subheader
101a
What I want is this
101
1.1 subheader
102a
I have uploaded a word-file I have uploaded a word-document here which shows the issue.
Set both Level 2 and Level 3 to restart after Level 1 (in the dialog box described in the Answer of first post to which you link). This way you can leave out Level 2 and Level 3 will still restart.