Book a Demo

Author Topic: Tagged value types for profiling  (Read 4794 times)

Michel777

  • EA User
  • **
  • Posts: 228
  • Karma: +0/-0
    • View Profile
Tagged value types for profiling
« on: October 18, 2013, 08:42:23 pm »
Hi,

tagged values [ch8203][ch8203]creating for profile  will be defined as attributes. The system only offers the following types of int, byte, char, double ...

What attributes types should I use for the following types ?

Boolean Const, datetime, memo, enum?

Thanks,

Michel


qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Tagged value types for profiling
« Reply #1 on: October 18, 2013, 09:08:15 pm »
Try to find the post by Phil Chudley how to include tagged values in a profile.

q.

Michel777

  • EA User
  • **
  • Posts: 228
  • Karma: +0/-0
    • View Profile
Re: Tagged value types for profiling
« Reply #2 on: October 18, 2013, 09:36:24 pm »
Hi,

is not the question how to get the tagged values in the Profile, but how to define it.

I checked all the post of Phil...
Thansk,

Michel

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Tagged value types for profiling
« Reply #3 on: October 18, 2013, 11:58:57 pm »
Check the predefined types for tagged values in the help. That's all what is possible.

q.

Michel777

  • EA User
  • **
  • Posts: 228
  • Karma: +0/-0
    • View Profile
Re: Tagged value types for profiling
« Reply #4 on: October 19, 2013, 12:53:08 am »
Hi,

no problem with them, i know all the types in this list.  I'm searching for corresponding types as attribute on the metaclass:

Here: right mouse on the Element, Features & Propterties, Attributes, Type.

Thanks,

Michel

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Tagged value types for profiling
« Reply #5 on: October 19, 2013, 08:14:59 am »
I guess that all you can add are those you will be presented when using "Edit with profile helper/Tagged Values/Add specialized tagged value". There was some way to define a tagged value with a predefined type and use that for a TV in a profile. For that it was put in the TV list of MDG and could ten be used later. But with V10 they changed the way TVs are used in profiles. So I have no idea if that still works (I guess not).

q.

Michel777

  • EA User
  • **
  • Posts: 228
  • Karma: +0/-0
    • View Profile
Re: Tagged value types for profiling
« Reply #6 on: October 19, 2013, 08:50:21 pm »
Hi,

there is a workarund, also mentioned in other post: defining tagged values manually using (***) "Settings", "UML Types" , "Tagged Value Types". They overwrite the tagged value types, they were defined in UML Profile.

Further it is possible the generate the "XML lines " with NDG Technology:

<TaggedValueTypes>
<RefData version="1.0" exporter="EA.25">
<DataSet name="Property Types" table="t_propertytypes" filter="Property='#Property#'">
<DataRow>
...
<Column name="Notes" value="Type=Memo;"/>
<Column name="Notes" value="Type=DateTime;"/>
<Column name="Notes" value="Type=Memo;"/>
<Column name="Notes" value="Type=Boolean;&#xA;Default=False;"/>
...

But: I could not import the values either with MDG nor with UML Profile.

Therefore a last question: how would it be possible to transfer such tagged values (***)  from one model to an other model ?

Thanks,

Michel

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Tagged value types for profiling
« Reply #7 on: October 20, 2013, 09:45:59 am »
That's what the post from Phil is all about. It's tricky somehow, but after a while I got it work. He posted it somewhat earlier and I replied that I succeeded. Sorry for being too lazy to find the post again. Also I just know that it worked. Actually I don't need it and such would not touch it with pliers unless needed.

q.

Sunshine

  • EA Practitioner
  • ***
  • Posts: 1353
  • Karma: +121/-10
  • Its the results that count
    • View Profile
Re: Tagged value types for profiling
« Reply #8 on: October 21, 2013, 02:37:05 pm »
Took me a while but found that post from Phil regarding the solution. For those who need it please find it here
http://www.sparxsystems.com/cgi-bin/yabb/YaBB.cgi?num=1331459874/0#0
Happy to help
:)

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Tagged value types for profiling
« Reply #9 on: October 21, 2013, 07:26:54 pm »
Yeah, exactly! That post should be made sticky :-) At least I will save a bookmark in my browser.

q.
« Last Edit: October 21, 2013, 07:27:32 pm by qwerty »