Author Topic: Naming standard for Tagged Values, so different scripts works  (Read 4731 times)

steen.jensen

  • EA User
  • **
  • Posts: 181
  • Karma: +8/-1
    • View Profile
As a non-programmer I have possible made some "sink-holes" for my self.
I have created Tagged-Values names with space, hyphen that I have trouble with in SQL-scripts.
Are there any other characters I should avoid? Underscore, National char as öäå etc etc

Nizam

  • Prolab Moderator
  • EA User
  • *
  • Posts: 320
  • Karma: +15/-2
  • Model Sharing - Simplified
    • View Profile
    • Professional Model Collaboration
Re: Naming standard for Tagged Values, so different scripts works
« Reply #1 on: May 17, 2018, 09:06:46 am »
There are no standards per say, You are right, we always stick to the code / sql safe naming convention (avoiding spaces or special characters). Underscores are safe though. Some gurus in this forum might have listed down the specific characters that are sure fail.

VKN

  • EA User
  • **
  • Posts: 187
  • Karma: +9/-1
    • View Profile
Re: Naming standard for Tagged Values, so different scripts works
« Reply #2 on: May 17, 2018, 12:48:24 pm »
Must avoid ::

RobCDeJong

  • EA User
  • **
  • Posts: 27
  • Karma: +4/-0
    • View Profile
    • Soltegro site
Re: Naming standard for Tagged Values, so different scripts works
« Reply #3 on: May 17, 2018, 10:13:54 pm »
The use of special characters is mainly defined by the underlying database. If you use a database/driver that supports unicode, EA works fine with special characters.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8064
  • Karma: +118/-20
    • View Profile
Re: Naming standard for Tagged Values, so different scripts works
« Reply #4 on: May 18, 2018, 08:43:11 am »
The other suggestion that I'd make is that using valid xml attribute names will help if you're wanting to export xmi (although EA will round trip the name with itself)

Short summary, don't start with 'xml', or a number. Avoid punctuation except ':', '.', '-', '_'. Don't include spaces.

steen.jensen

  • EA User
  • **
  • Posts: 181
  • Karma: +8/-1
    • View Profile
Re: Naming standard for Tagged Values, so different scripts works
« Reply #5 on: May 20, 2018, 08:37:00 am »
What about mix o capital & small letters in tagged value names??

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Naming standard for Tagged Values, so different scripts works
« Reply #6 on: May 20, 2018, 04:02:46 pm »
IIRC case sensitivity (e.g. whether "Taggedvalue" and "TaggedValue" are seen as being different) depends on the database you use.

q.