Skip to main content



      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
Eclipse UserFriend
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
Eclipse UserFriend
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:Examples
Next Topic:[Request] integration with xcore
Goto Forum:
  


Current Time: Tue Jul 01 15:52:56 EDT 2025

Powered by FUDForum. Page generated in 0.03679 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top