Book a Demo

Author Topic: Dynamic layout report template  (Read 2971 times)

cjwik

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Dynamic layout report template
« on: August 12, 2016, 06:05:14 am »
I have created a document rtf template, template selector and fragment to have a custom BPMN report.

The challenge is that I like to have diffrent layout for the Activity name depending if the Activity is a Sub-Process or Task.

On the element Activity there is a property called activityType, with the values Task or Sub-Process.

In the fragment I have for activities would I like to have the field Name in format normal text if the property activityType is set to Task, and if the property is set to Sub-Process then I would like to have the element field Name set to format heading 2.

In pseudo code
{If Element.valueOf(activityType)=Task}
   {Element.Name} "format normal text"
{EndIf}
{If Element.valueOf(activityType)=Sub-Process}
   {Element.Name} "format heading 2"
{EndIf}

I cannot find a if thing like this for reports, so I turn to element filers for fragments. But I am not able to create a filter for the field Element.valueOf(activityType).

How should one do this?

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Dynamic layout report template
« Reply #1 on: August 12, 2016, 12:52:28 pm »
if you can't filter it using the standard filters then I guess you'll have to use a script or SQL fragments

Geert