|
Re: Syntax for Column Finder Expression [message #1219243 is a reply to message #1219214] |
Mon, 02 December 2013 20:47 |
|
Hi,
Dominique Torette wrote on Mon, 02 December 2013 11:30I'm trying to specify a Cross Table Editor for one of my model.
In this model, I have two classes: 'Equipment' and 'Phase'.
I have a 1-1 relation from 'Equipment' to 'Phase': this relation is called 'LastPhase'.
I want a cross table that show this relation.
I have defined my Line Mapping, Column Mapping and Intersection Mapping.
When I create a representation, the cross table is created (Equipment rows and Phase columns) but no relation appear.
In suspect that my error is in the 'Column Finder Expression'.
I have set this field to : '[Self.LastPhase/]'
It seems you typed 'Self' instead of 'self'. The requests are case sensitive. Could you check the case of 'LastPhase' in your metamodel too ?
Did you enable the 'Use Domain Class' property in the 'Domain Based' property section of your Intersection Mapping ? I think it should stay disabled, according to your explanations.
Quote:
When I validate the representation, no error is reported.
I tried to create a sample Cross Table on ecore, with Column Mapping and Line Mapping on EClass and when I set the 'Column Finder Expression' of Intersection mapping with [Self/], the validation in the Viewpoint Specification Editor returns the following error: 'Unrecognized variable: (Self)'.
Quote:
Where can I find more documentation on this field?
TIA, DominiqueT
You will find more information on Table and intersection mappings at [1] and on writing queries in Acceleo at [2].
Best regards,
Maxime Porhel
[1] http://eclipse.org/sirius/doc/specifier/tables/Tables.html#intersection_mapping
[2] http://eclipse.org/sirius/doc/specifier/general/Writing_Queries.html#acceleo
Maxime Porhel - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
Powered by
FUDForum. Page generated in 0.02924 seconds