« Back

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

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Attribute "Class Cardinalities" in metamodel too short (STRING)
community class cardinality documentation
Answer
3/27/14 11:45 AM
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.
Attachment

Attachments: 20130612 Cardinalities Feld STRING zu kurz.png (47.2k)

RE: Field "Class Cardinalities" in Metamodel too short (STRING)
Answer
6/13/13 7:54 AM as a reply to Anonymous.
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"
Attachment

Attachment

Attachment

Attachment

Attachments: File_Management_1.PNG (16.6k), File_Management_2.PNG (11.4k), Open_Files.PNG (25.7k), Success_Message.PNG (16.6k)