Book a Demo

Author Topic: Transformation Template: Can I use AttTagged Value as Table.Attribute.Type  (Read 4114 times)

m2i7c9k

  • EA User
  • **
  • Posts: 57
  • Karma: +0/-0
    • View Profile
Hi Gus,

Please help me: In my model, I have a class that has an attribute with a tagged value that
I want to use as destination DB Table.attribute.type.

Example:
Class(Person).Attribute(firstName).Type(string) ----> DB.Table(Person).Attribute(fistrName).Type(Varchar(250)

How can I achieve that?

Thanks for the advice.

Mick

m2i7c9k

  • EA User
  • **
  • Posts: 57
  • Karma: +0/-0
    • View Profile
I've figured out it:

   
   %if attType=="String" and attTag:"mytag" != ""%
      type=%qt%%attTag:"mytag"%%qt%
   %endIf%