Book a Demo

Author Topic: v15.2: Linked Documents > Add Content to Document > Insert as Dynamic Content  (Read 2916 times)

malcolmK102

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Try this:
1. In a Linked Document, drag an element from the Browser onto it.
2. In the dialog box, choose "Insert as Dynamic Content" and then select a Report Template (preferably a complex one that returns a mix of notes, properties, and relationships – i.e. things that are likely to change quite frequently as the model, is developed)

An actual "Dynamic Document" (introduced in v11?) will always update automatically (whether that be changes to the Template or to the model content). However, for a "Linked Document", it doesn't. This page (scroll to bottom): https://www.sparxsystems.com/enterprise_architect_user_guide/15.2/model_publishing/manage_custom_documents.html says that this functionality is actually designed like this (i.e. is NOT dynamic after all – being only a snapshot or a specific point in time). To update it, it has to be done manually: open the "Linked Document" window, right-click, and choose "Update Dynamic Report Elements" (or on another window somewhere, it is actually "Update Dynamic Selection").

Though this may be a legitimate use case, for me, this renders the feature useless. The issue is that "Dynamic Documents" are not included in HTML output, but "Linked Documents" are, and what I want to do is use a Sparx Template to provide in the HTML output a complementary and richer view of a specific Stereotype's notes, properties, and relationships (including indirect relationships).

In effect, I still cannot do this: imagine an enterprise-level project where I have 50 (or 500 or more) of these (non)-dynamic Linked Documents. That would be 50 (or 500) manual updates before I can publish to HTML, otherwise what gets published as the Linked Document is probably going to be out-of-synch with the actual HTML page. (Same issue would apply to webEA.)

So, is there any way to update ALL dynamic content in Linked Documents automatically (unfortunately, I'm not techie enough to write scripts from scratch, but any pointers gratefully received).

Or does this need to be a feature request?

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
I don't think the option to update dynamic content is exposed in the API, so probably no luck there.

Geert