Book a Demo

Author Topic: Master Document and Filtering elements  (Read 3047 times)

Ronaldo Juliatto

  • EA User
  • **
  • Posts: 29
  • Karma: +0/-0
    • View Profile
Master Document and Filtering elements
« on: October 26, 2012, 07:39:21 am »
Hi!

I am developing a complex RTF document, composed of a Master Document and several Model Documents, with different templates.

I am facing a problem that can be best viewed in the EA 9.3 EAP file archived in TestDoc.rar reachable by http://sdrv.ms/PtSzzp. There are two views in this project:
- Model (which contains a node with two children components)
- Documentation (which contains both a Master Document and a Model Document)

In the Resources tab, there are two RTF Documents, each corresponding to either the ModelDocument (named DocTest - RTF Document DOCTEST_RES) or the MasterDocument (named MasterDocTest - RTF Document MASTERDOCTEST_RES).

Well, what is pursued is to create a report where the node named "NODE SHOULD NOT APPEAR" (in the model) really does not appear in the document, but ITS CHILDREN COMPONENTS DO, immediately below the package "JUST ANOTHER TEST".

To do this, in the dialog box "Generate Documentation" (which can be reached by right-clicking the corresponding RTF Document in the Resources Tab) the following settings were applied:
- in the tab "Generate", set "Include all Diagram Elements in Report"
- in the tab "Advanced", set "Hide note-less elements", "Hide <Anonymous> elements" and (very important) "Include child elements even if the parent element is filtered out".
- in the "Element Filters" tab, it set a filter to include only elements where "Keywords" is not equal to "INVISIBLE".

In the model, the Keywords of the node element "NODE SHOULD NOT APPEAR" really contain "INVISIBLE". So, I was expecting this node to be filtered out when generating the RTF, but NOT the children components.

Well... it works ONLY when the RTF is generated directly from the Model Document, but it DOES NOT WORK when generating the RTF through the Master Document, and its settings (via MASTERDOCTEST_RES) is the same used for the Model Document.

So, I am expecting some help with it, as I could not find any hint on the documentation about this.

Any help will be greatly appreciated.

Thanks

Ronaldo Juliatto