Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: ndg2 on July 05, 2018, 03:00:09 am
-
Hello,
as far as I understand, EA document generator will produce
bookmarks for each element and package. We can refer to
those bookmarks within the same document template but also
from other templates.
I create a list of requirements as part of my normal document
generation.
Now, I create a list of requirements as an appendix using
a custom template and a custom SQL query.
The query is
select t_object.ea_guid + t_object.Name as [Req-Hyperlink], t_object.ea_guid as CLASSGUID, t_object.Object_Type as CLASSTYPE
from t_object
where t_object.Stereotype = 'Func. Req.' and t_object.Package_ID = #Package#
In the (custom) template I refer to [Req-Hyperlink] as
custom >
Functional Requirement {Req.Hyperlink}
< custom
The SQL query and template produce entries in the generated
documents like
Functional Requirement Close Mailbox
and "Close Mailbox" has a hyperlink (or bookmark reference, depending on how you view it) as
"BKM_FEF4D7AD-98FE-456c-9E34-03603C99C7CC"
This bookmark(s) seems to be present in the document
Now the problem: for RTF and DOCX, jumping from hyperlink at the end of the document
to referenced element (here: requirement) in the midst of the document
works as expected, but _not_ for PDF. For PDF it will just jump to the end if you click on
a hyperlink (or <CTRL>-click on it). Is that normal? Is it a known problem?
In the latter case: is there something wrong with how I do it? The SQL and template fields
work for both .eap and SQL server (here Oracle), so this isn't the problem I guess.