Skip to main content


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 16:30 Go to next message
Dominique Torette is currently offline Dominique ToretteFriend
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 20:47 Go to previous message
Maxime Porhel is currently offline Maxime PorhelFriend
Messages: 516
Registered: July 2009
Location: Nantes, France
Senior 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


Maxime Porhel - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Previous Topic:Examples
Next Topic:[Request] integration with xcore
Goto Forum:
  


Current Time: Thu Apr 25 05:26:17 GMT 2024

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

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

Back to the top