user2512458
user2512458

Reputation: 9

Enterprise architect generate documentation - hide field with no value

Default template /fragment of EA has some kind of feature, that can hide Fields during generation, which has no value. If I make my own template, I don't know how to get in that future.

Example: I can have attribute with or without initial value and I don't want to generate empty label Initial value: if attribute has no initial value.

Upvotes: 0

Views: 815

Answers (2)

Ian Mitchell
Ian Mitchell

Reputation: 1

eaDocX has a different approach. It has a single setting "Compact Document" which suppresses ALL fields which don't have a value.

Upvotes: 0

Screwtape
Screwtape

Reputation: 1367

In order to hide labels and formatting for blank/null values, you need to place bookmarks in the template/fragment around the text and field.

For example, if you are looking to have the field {Att.Default} with an optional label, you would place the bookmark Att.Default.Start before the label, and Att.Default.End, either at the end of the {Att.Default} or at the beginning of the next line, depending on how you want the layout to be.

Sadly, this doesn't work (at least for me) with custom fields in a custom fragment.

Upvotes: 1

Related Questions