« Tilbake til University of Duisburg-Essen

Attribute "Class Cardinalities" in metamodel too short (STRING)

Kombinasjonsvisning Flat visning Trådet visning
Tråder [ Forrige | Neste ]
toggle
Attribute "Class Cardinalities" in metamodel too short (STRING)
community class cardinality documentation
Svar
27.03.14 11:45
The class attribute "Class Cardinalities" is limited due to the data type "STRING" to 3699 characters. A change to LONGSTRING is not possible since the attribute is derived from the ADOxx metamodel. The attached screenshot shows the error message in case the definition is longer than the number of characters.
Vedlegg

Vedlegg: 20130612 Cardinalities Feld STRING zu kurz.png (47,2k)

RE: Field "Class Cardinalities" in Metamodel too short (STRING)
Svar
13.06.13 07:54 Postet som et svar til melding #{1} av {2}
As a solution to the issue above, it is recommended to store the definition of the cardinalities and (potentially any other class attribute) in a file and include it in the library by using the IMPORT statement. Please find below the recommended steps to perform this change:

1. Save the content of the respective field in a text file using your preferred text editor and naming convention (e.g. "cardinality_d_<Klassenname>.leo")

2. Import the file(s) into the library
a. Open the ADOxx Development Toolkit
b. Navigate in the menu to "Extras" -> "File Management..." (see attachment File_Management_1.PNG)
c. Select application library (see attachment File_Management_2.PNG)
d. Click on "Import"
e. Select file(s) and click on "Open" to import(see attachments Open_Files.bmp, Success_Message.PNG)

3. Instead of writing the code in the attribute, include the respective file from the library:

@INCLUDE "db:\\<Dateiname>.leo"
Vedlegg

Vedlegg

Vedlegg

Vedlegg

Vedlegg: File_Management_1.PNG (16,6k), File_Management_2.PNG (11,4k), Open_Files.PNG (25,7k), Success_Message.PNG (16,6k)