Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » [Ecore ODA driver] access to attributes in Ecore conform model using birt data sets
[Ecore ODA driver] access to attributes in Ecore conform model using birt data sets [message #1708305] Tue, 15 September 2015 10:46
smaoui asma is currently offline smaoui asmaFriend
Messages: 50
Registered: July 2009
Location: Paris Saclay, France
Member
Hello,

I try create an excel report from my model (conform to an ecore mm) using birt.
I create my data source, data set and succeed in reporting some data
Example I have class A with attribute a, b, and c
I can report in my excel file A.a, A.b, A.c
however, wen A is a subtype of B with d attribute, I could not display the value of A.d

I tried to add a computed column in my data set called d with this ocl expression:

row["@self"].getObject().oclAsType(MM::B).getD()


but I get this exception :

A BIRT exception occurred. See next exception for more information.
There are errors evaluating script "row["@self"].getObject().oclAsType(MM::B).getD()":
TypeError: Cannot find function getD in object a1 A.

can some one help me to find the best way to report the value of A.d ?

thank you very much

Asma
Previous Topic:Birt Runtime 4.4.2 source Jar Maven Repository
Next Topic:How to fix position of Export icon in Eclipse view
Goto Forum:
  


Current Time: Fri Apr 26 12:57:50 GMT 2024

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

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

Back to the top