|Unable to show derived values in table colum [message #1229945]
||Fri, 10 January 2014 16:09
| Wilbert Alberts
Registered: June 2010
Somehow, I don't manage to get a proper table for a very simple metamodel.
My meta model defines the concepts Model, Block, Terminal and Connection. The Model contains Block and Connection entities. The Block contains Terminal entities. Besides everybody having a 'name' feature, Connections refer to 2 Blocks by a 'from' and a 'to' reference.
Now I want to create a tabular representation of all Connections in the model. For each Connection, I would like to display its name, and the source and target of the Connection. The source of a connection is defined by the Terminal and the Block that contains it.
Given two Blocks 'a' and 'b', a connection 'c' between them should look like:
| Connection name | Source | terminal | Target | terminal |
| c | a | out | b | in |
(Here I assume that 'a' contains a Terminal named 'out' and 'b' contains a Terminal named 'in'.
I tried to create an Edition Table Description with Line Mapping for Connections. The column representing the connection name is trivial. However, I don't manage to refer to the name of the source block.
I think that I should create a Feature Column Mapping based on the 'name' feature. However, the name should not be taken from the Connection but from the Block containing the 'from' Terminal.
Therefore I tried a Feature Parent Expression like: [ self.from.eContainer() /]
This results in an empty column unfortunately. Any help would be appreciated.
PS. Is there a reason why defining a feature named 'to' (counterpart of 'from') would be a bad idea? Does this lead to any reserved keyword conflicts?
Powered by FUDForum
. Page generated in 0.01608 seconds