|Re: Syntax for Column Finder Expression [message #1219243 is a reply to message #1219214]
||Mon, 02 December 2013 20:47
|| Maxime Porhel
Registered: July 2009
Location: Nantes, France
Dominique Torette wrote on Mon, 02 December 2013 11:30
I'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.
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)'.
Where can I find more documentation on this field?
You will find more information on Table and intersection mappings at  and on writing queries in Acceleo at .
Maxime Porhel - Obeo
Need training or professional services for Sirius?
Join the Sirius community at SiriusCon. Register for free: Nov. 9th Paris
Powered by FUDForum
. Page generated in 0.02151 seconds