Author Topic: Code Generation Template  (Read 2872 times)

zalbina

  • EA User
  • **
  • Posts: 149
  • Karma: +0/-0
    • View Profile
Code Generation Template
« on: September 23, 2012, 07:00:00 pm »
Hello,

I have attribute tagged value with some name "tagName", but without value, only name. So, how can I check in the template if the tagged value exists? This code does not work:

%if attTag:"tagName" =""%

because NO value. I tried ==NULL or ==EMPTY does not work also.


Thanks.

Dermot

  • EA Administrator
  • EA User
  • *****
  • Posts: 591
  • Karma: +7/-0
    • View Profile
Re: Code Generation Template
« Reply #1 on: September 24, 2012, 04:02:30 pm »
Here is an example from the default template: ERD to Data modeling - Connector__Attribute:
%if connectorDestElemTag:"commonDataType"!= "na"%

One point - try correction:
%if attTag:"tagName" ==""%
« Last Edit: September 24, 2012, 04:04:05 pm by Dermot »

zalbina

  • EA User
  • **
  • Posts: 149
  • Karma: +0/-0
    • View Profile
Re: Code Generation Template
« Reply #2 on: September 24, 2012, 08:21:30 pm »
Thanks, but it does not work :(.

Dermot

  • EA Administrator
  • EA User
  • *****
  • Posts: 591
  • Karma: +7/-0
    • View Profile
Re: Code Generation Template
« Reply #3 on: September 25, 2012, 03:58:40 pm »
Best that you put it through the proper processes and submit this via the support email.
Attach a simple example testing if this works.