Author Topic: Size of tagged values  (Read 2345 times)

xkrystof

  • EA User
  • **
  • Posts: 29
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Size of tagged values
« on: January 10, 2008, 01:39:22 am »
Hi,

is there any way in EA, how to increase size of tagged value? EA does not allow me to insert text of size more then 255 chars ...


thanks

Jan Krystof


«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Size of tagged values
« Reply #1 on: January 10, 2008, 06:45:36 am »
Hi Jan,

Yes, you can do this.

Your problem is a side effect of how tagged values are handled by EA. Usually the values are short strings - UML tagged values are always represented as strings, but the interpretation of the values can be string, boolean, BLOB, or whatever - so EA stores the values as a text field by default. Such fields are essentially VARCHAR(255).

EA also allows you to create tagged values that will only take (a string representation of) a boolean value. Or you may create tagged values that only accept a value from a fixed list of strings. Finally, you can create Memo values that accept an arbitrary value of any length, a BLOB.

You need to look up Tagged Value Type - the whole string; you'll see what I mean when you get there - in the EA help index. This will get you started. Look around a bit and use "Type=Memo;" (without quotes) when you define your own.

HTH, David
No, you can't have it!

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +54/-3
    • View Profile
Re: Size of tagged values
« Reply #2 on: January 10, 2008, 01:38:50 pm »
Quote
Finally, you can create Memo values that accept an arbitrary value of any length, a BLOB.

You need to look up Tagged Value Type - the whole string; you'll see what I mean when you get there - in the EA help index. This will get you started. Look around a bit and use "Type=Memo;" (without quotes) when you define your own.

Or you can create a memo tag on the fly by simply giving a plain tag the value "<memo>" (without the quotes, of course).
The Sparx Team
[email protected]

xkrystof

  • EA User
  • **
  • Posts: 29
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Size of tagged values
« Reply #3 on: January 11, 2008, 12:22:35 am »
Hi,
Thanks for helpful and quick advices guys. It helped me lot.

Jan Krystof
« Last Edit: January 11, 2008, 12:22:53 am by xkrystof »