Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Syntax for Column Finder Expression
Syntax for Column Finder Expression [message #1219214] Mon, 02 December 2013 11:30 Go to next message
Dominique Torette is currently offline Dominique Torette
Messages: 3
Registered: November 2013
Junior Member
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/]'
When I validate the representation, no error is reported.
Where can I find more documentation on this field?

TIA, DominiqueT
Re: Syntax for Column Finder Expression [message #1219243 is a reply to message #1219214] Mon, 02 December 2013 15:47 Go to previous message
Maxime Porhel is currently offline Maxime Porhel
Messages: 28
Registered: July 2009
Junior Member
Hi,

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.

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
Previous Topic:Custom DSL with Sirius
Next Topic:Generating code with Acceleo from Sirius digram model
Goto Forum:
  


Current Time: Wed Apr 16 21:01:44 EDT 2014

Powered by FUDForum. Page generated in 0.01757 seconds