Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: DanG83616 on September 15, 2009, 10:13:04 am
-
I would like to select which element taged values show up in a report. I'm using:
tagged value >
{ElementTagVal.Name}: {ElementTagVal.Value}
< tagged value
I really only want the tagged value when Name == Id. Is there a way to do this?
Thanks,
Dan
-
Please try to use the 'ValueOf' item. You can specify the target Tagged Value when using this item.
-
We have only just documented the RTF Report valueOf field in the Help for build 849, in the Add Content topic (look for RTF Style Template Editor Add Content in the Help index). Pending the release of that build, here is the description of the field.
--------------------------------------------------------------------------------
For certain sections of the report content, you can add a field to capture a special characteristic of a model component, as defined by a specific Tagged Value. This is the valueOf field, shown in the list for a connector section in the above graphic. The sections that provide the valueOf field are:
When you select the valueOf field from the context menu, the template editor prompts you to specify the tag (Tagged Value) from which to extract the value for the report output. This tag should be one of the tags associated with the model component, such as ConnectorAltName for a connector. When you provide the tag name, the template editor adds the field at the cursor position, in the format:
{Connector.valueOf(tagname)} for example: {Connector.valueOf(ConnectorAltName)}
For clarity, you could type some lead-in text or the meaning of the Tagged Value immediately preceding the value field; for example:
Alternative Name: {Connector.valueOf(ConnectorAltName)}
-
Perfect!
Thank you,
Dan