Book a Demo

Author Topic: RTF Fragment Element Filter hides Linked Document  (Read 3618 times)

ggandhi

  • EA User
  • **
  • Posts: 28
  • Karma: +0/-0
    • View Profile
RTF Fragment Element Filter hides Linked Document
« on: September 05, 2013, 05:48:09 pm »
I have successfully implemented a RTF Fragment Element Filter as shown below. Unfortunately this Filter has produced an unwanted side-effect. My RTF Fragment Element Filter is as follows:
Search In: Element Stereotype
Condition: One of
Look For: 'LPAR', 'LDOM'
Required: Yes

The package (that contains the diagram elements being filtered) contains a linked document, which was being included in the RTF Exported Report. The side-effect = The linked document is being excluded from the RTF Exported Report.

ggandhi

  • EA User
  • **
  • Posts: 28
  • Karma: +0/-0
    • View Profile
Re: RTF Fragment Element Filter hides Linked Docum
« Reply #1 on: September 06, 2013, 12:13:45 am »
I need my Package-Linked Document to appear in my RTF report. I have done numerous experiments over recent weeks to overcome the problem with Element Filters. Does anyone know which value for 'Linked Document' I should include in the following 'Look For' to ensure that package-linked documents are included:

Search In: Element Stereotype. Condition: One of. Look For: 'LPAR', 'LDOM', 'x86 VM', 'Document'. Required: Yes


I have tried many 'Look for' combinations. Element Filters 7 and 8 below are interesting because the Package-Linked Document is being included in the report. This suggests 'Condition: Not Equals' and 'Required: No' are more forgiving because they let the linked document appear in my RTF report.

Sparx EA seems to fail in the following 2 examples. If either of the following conditions are used in isolation of any other conditions, each Element Filter should exclude Element Stereotype 'Network_Interface' from my element tables.  They do not.  

Search In: Element Stereotype. Condition: Equal To. Look For: 'Network_Interface'. Required: No
Search In: Element Stereotype. Condition: Not Equals. Look For: 'Network_Interface'. Required: Yes


Here are the first 8 examples in my list of 16 Element Filters I have tried.

1. No rows in element filter dialogue.
Result: Element tables produced in report, but does not exclude unwanted stereotypes from diagram-element. Package-Linked

Document is produced in report.

2. One row in element filter dialogue as follows:
Search In: Element Stereotype. Condition: One of. Look For: 'LPAR', 'LDOM', 'x86 VM'. Required: Yes
Result: Successfully filters out unwanted element from diagram-element table, but Package-Linked Document missing from

report.

3. Two rows in element filter dialogue as follows:
Search In: Element ObjectType. Condition: Equal To. Look For: Document. Required: Yes
Search In: Element Stereotype. Condition: One of. Look For: 'LPAR', 'LDOM', 'x86 VM'. Required: Yes
Result: Element tables missing. Package-Linked Document missing from report.

4. Two rows in element filter dialogue as follows:
Search In: Element ObjectType. Condition: One of. Look For: 'node', 'document'. Required: Yes
Search In: Element Stereotype. Condition: One of. Look For: 'LPAR', 'LDOM', 'x86 VM'. Required: Yes
Result: Element tables produced in report.  Successfully excludes unwanted stereotypes from diagram-element. Package-Linked

Document missing from report.

5. Two rows in element filter dialogue as follows:
Search In: Element ObjectType. Condition: One of. Look For: 'node', 'artifact'. Required: Yes
Search In: Element Stereotype. Condition: One of. Look For: 'LPAR', 'LDOM', 'x86 VM'. Required: Yes
Result: Element tables produced in report.  Successfully excludes unwanted stereotypes from diagram-element. Package-Linked

Document missing from report.

6. Two rows in element filter dialogue as follows:
Search In: Element ObjectType. Condition: One of. Look For: 'node', 'artifact', 'model document'. Required: Yes
Search In: Element Stereotype. Condition: One of. Look For: 'LPAR', 'LDOM', 'x86 VM'. Required: Yes
Result: Element tables produced in report.  Successfully excludes unwanted stereotypes from diagram-element. Package-Linked

Document missing from report.

7. One row in element filter dialogue as follows:
Search In: Element Stereotype. Condition: One of. Look For: 'Logical_Node','Network_Interface'. Required: No
Result: Does not filter out unwanted element from diagram-element table. Package-Linked Document is in report.

8. Two rows in element filter dialogue as follows:
Search In: Element Stereotype. Condition: Not Equals. Look For: 'Network_Interface'. Required: Yes
Search In: Element Stereotype. Condition: Not Equals. Look For: 'Logical_Node'. Required: Yes
Result: Does not filter out unwanted element from diagram-element table. Package-Linked Document is in report.


ggandhi

  • EA User
  • **
  • Posts: 28
  • Karma: +0/-0
    • View Profile
Re: RTF Fragment Element Filter hides Linked Docum
« Reply #2 on: September 06, 2013, 07:53:31 pm »
Fellow SparxEAs, I have a solution to my need to combine element filtering with including package-linked documents in the RTF report.

The element filters applied to my RTF Template Fragment are as follows:

Search In: Element.ObjectType
Condition: One of
Look For: 'Package'
Required: No

Search In: Element.Stereotype
Condition: One of
Look For: 'LPAR',' LDOM','x86 VM','Laptop/Desktop','Virtual_Server'
Required: No

Element Features Optional or Required: Optional

Thank you for your interest and special thanks to Simon at Sparx Australia.