Book a Demo

Author Topic: Transformations: Tagged values of Datatype  (Read 3603 times)

Sebastian Schmidt

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Transformations: Tagged values of Datatype
« on: May 27, 2013, 09:42:32 pm »
Hi All,

in my transformation template I would like to get access to the tagged values of the datatype of an attribute.

Let's assume the tagged value is named "tagged_value".

Getting the tagged value of the attribute itself is easy:

%attTag:"tagged_value"%

But how do I get a tagged value of the datatype of that attribute?
In an object oriented programming language, you would write something like

%attType.attTag:"tagged_value"%

But that does not work, as attType isn't an object but just a string...

Any hints? Is there a way to call custom JScript code from the templates? That could be helpful here.

Kind regards,
Sebastian

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Transformations: Tagged values of Datatype
« Reply #1 on: May 28, 2013, 08:45:20 am »
It can't be done from within the templates directly. Scripting isn't supported but an add-in call is.

It will look something like
Code: [Select]
%EXEC_ADD_IN("MyAddin", "GetAttributeClassifierTag", attClassifier, "tagged_value"%
Look in the documentation and (here on the forum) for more information.

Sebastian Schmidt

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Transformations: Tagged values of Datatype
« Reply #2 on: May 31, 2013, 08:47:15 pm »
Thanks for your reply,

I'm currently happy with calling a Script by hand which transports my Tagged values and other information to the places where I want to have them. Then the transformation will consider them in the right way.

Kind Regards,
Sebastian