[Ecore ODA driver] access to attributes in Ecore conform model using birt data sets [message #1708305] |
Tue, 15 September 2015 10:46 |
smaoui asma 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
|
|
|
Powered by
FUDForum. Page generated in 0.03721 seconds