|
|
|
|
Re: "String value(s) can't be resolved" error in table import [message #1828136 is a reply to message #1828088] |
Tue, 02 June 2020 10:01 |
|
Hi Ri,
you won't succeed with a such configuration. The paste is not able to create the Comment in the same time than it creates the Package.
In order to be able to create Package and Owned comments in the same time, you need to use the TreeTable showing the Package at the first level and the comment as child of the Package.
The column of the table must be NamedElement#name and Comment#body
So you need to configure the Generic Tree Table for the display AND to configure it for the paste. (Right-Click -> Menu Configure Categories And Paste).
From this configuration, your Excel must be structured too.
First column of your Excel is a row header label column. This column will give the structure of the table: a space allows to define the depth, so for you:
Package
Comment
Package
Comment
The label set in this column is not used, only the space is important (if I remember well).
Then you will have 2 others columns : one for the name of the package and one for the body of the comment.
Please, find in attachment a Papyrus model with a configured table and an excel with data to paste.
There are documentation in the Eclipse Help Content -> Papyrus guide -> Toolsmith Guide -> Using Table -> General -> Paste And Insert
Hoping it will help you.
Regards
/Vincent
|
|
|
|
|
|
Re: "String value(s) can't be resolved" error in table import [message #1828231 is a reply to message #1828144] |
Thu, 04 June 2020 14:18 |
Ri Fr Messages: 134 Registered: July 2015 |
Senior Member |
|
|
Sorry Vincent I'm back trying to import Classes, attributes and definitions for both.
I can import classes and attributes in Class tree Table, but the definitions (comments) do not import:
The columns in the table are name and owned comment, the configure paste categories are depth 0 Class, Depth 1 owned attribute, depth 3 comment
In short I was able to change your template to import classes and their definitions, but I'm making a mistake in either the table structure (columns and hierarchy) or in the paste category setup. WOuld you be so kind to explain how to import classes + their definitions and their attributes + the attribute definition? Thanks!
[Updated on: Thu, 04 June 2020 15:03] Report message to a moderator
|
|
|
[Solved]: "String value(s) can't be resolved" error in table import [message #1828346 is a reply to message #1828088] |
Mon, 08 June 2020 07:28 |
Ri Fr Messages: 134 Registered: July 2015 |
Senior Member |
|
|
Thanks everyone so this works for me for importing classes, attributes and attribute descriptions from Excel (I haven't done class descriptions yet).
I'm posting in case others may need the solution. Credit to Vincent and Carsten for showing me the way!
Use Generic Tree table
Right click on the table to not show any Categories, then Hide all Categories, then Hierarchic style Tree single column
Right click on table rows - configure categories as follows: level 0, 1 and 2 are all ownedElement.
On next window, configure paste element id and containment feature as follows:
Level 0: Class - packagedElement
Level 1: Property - ownedAtribute
Level 2: Comment - ownedComment
The Excel import structure must look like this (no space before Class, 1 space before Property, 2 spaces before Comment):
Class TESTclass 3
Property TESTattribute3
Comment TESTattribute description3
Imported a few dozen classes with thousands of attributes and their descriptions in a few seconds. Thanks everyone!
[Updated on: Mon, 08 June 2020 08:20] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.04280 seconds