Book a Demo

Author Topic: Hide header in custom fragment (bookmark?)  (Read 2888 times)

Kristofer

  • EA User
  • **
  • Posts: 52
  • Karma: +0/-0
    • View Profile
Hide header in custom fragment (bookmark?)
« on: April 16, 2019, 07:38:24 pm »
Hi!

I have a document fragment where the data is coming from a custom script (Document Options -> Custom Query -> Custom Script). This script returns, among other information, the constraints associated with an element. I want to, if there are no constraints associated with the element, to not show the header. This is how the fragment looks like:

custom>
Definition
{Definition}

Constraints     <-- If there are no constraints, I don't want to show this text
{Constraints}
<custom

I cannot figure out how to do this using bookmarks (if it is even possible). The other option is to let the script return the header as well, but how do I format it? (I want it to be Calibri, bold and 9)

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Hide header in custom fragment (bookmark?)
« Reply #1 on: April 21, 2019, 03:19:17 pm »
I don't think you can use the bookmarks in a custom section.

You'll have to output the header in your script and use the styles to set the header {Constraints} to the header style (e.g. header1)

Geert