Book a Demo

Author Topic: genOptDefaultDatabase  (Read 4572 times)

Kaneda

  • EA User
  • **
  • Posts: 38
  • Karma: +0/-0
    • View Profile
genOptDefaultDatabase
« on: August 05, 2005, 04:43:45 am »
Hi there,
I am currently looking through the generation templates, and I am wondering again, that there is some stuff in there that I can find in the Help Documentation.

Such as "genOptDefaultDatabase" , which I found while I was looking for the right place to alter the standard DDL attribute type (memo is WAY to big, varchar is enough for me).

Doing that I realized that there is no entry in the options menue for code generation (as there is for C# and others).
Why is that part "hidden"?

And, sorry, but why is so much stuff missing in the help??
I mean there is a lot of stuff appearing in the templates, that are not talked about at all in the help file.
OK, you  don't need a PHD to find out what a CONVERT_TYPE function makro does, but nonetheless...

It shouldn't be so hard to updatethe helpfiles...
There are 10 types of people in this world. Those who understand binaries and those who don't...

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: genOptDefaultDatabase
« Reply #1 on: August 07, 2005, 06:09:09 pm »
All this stuff is documented.

For substitution macros (including genOptDefaultDatabase) look at http://sparxsystems.com.au/EAUserGuide/index.html?fieldsubstitutionmacros.htm

For function macros (including CONVERT_TYPE) look at http://sparxsystems.com.au/EAUserGuide/index.html?functionmacros.htm

In general, you can look at Code Engineering | Code Template Framework | Code Templates | Code Template Syntax

Simon

Kaneda

  • EA User
  • **
  • Posts: 38
  • Karma: +0/-0
    • View Profile
Re: genOptDefaultDatabase
« Reply #2 on: August 08, 2005, 01:12:05 am »
well this is the answer I feared, because it includes the possibility that I am totally blind and making a fool out of myself right now.

Because, I looked at exactly the parts of the UserGuide (I printed it out completly), and there is no CONVERT_TYPE function makro explainded.

There is a CONVERT_SCOPE which is followed by the CSTYLE_COMMENT.

Either I have an older version of the UserGuide (though I have the current EA version), or I don't know.

If I search for this makro, the user guide finds nothing.
Hence my initial question :)
There are 10 types of people in this world. Those who understand binaries and those who don't...

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: genOptDefaultDatabase
« Reply #3 on: August 08, 2005, 05:18:27 pm »
:-[

Very much it's me making a fool out of myself.

There is actually some extra information specific to writing transformations available at http://sparxsystems.com.au/EAUserGuide/index.html?writingtransformations.htm

CONVERT_TYPE itself is documented at http://sparxsystems.com.au/EAUserGuide/index.html?convertingtypes.htm

However, it appears that there was a mistake in the help so that on that page it CONVERT_NAME appeared instead of CONVERT_TYPE.  The version on the web is correct, the help file with the current release is incorrect.

Sorry for the inconvenience and my misinformation.

Simon

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: genOptDefaultDatabase
« Reply #4 on: August 08, 2005, 06:56:15 pm »
Hello Kaneda,

Just to clarify... that particular page of the help file has been updated recently, since the last installers were built. From memory not much else has changed, just a few corrections of typos, but if you want the latest help file it will always be available from one of the following links:



In general, the online user guide quoted by Simon is more likely to be bang up-to-date than the other formats because it is comparatively easy to make changes between releases.

Sorry for the confusion,

Neil
The Sparx Team
[email protected]

Kaneda

  • EA User
  • **
  • Posts: 38
  • Karma: +0/-0
    • View Profile
Re: genOptDefaultDatabase
« Reply #5 on: August 09, 2005, 06:08:00 am »
well, thanks for the help!
Though you didn't answer my initial question, since "genOptDefaultDatabase" is still not mentioned in the user guide  as well as some other stuff ;)

And will there be aconfiguration menu for DDL transformation as there is for the other programming languages in the future?
There are 10 types of people in this world. Those who understand binaries and those who don't...