Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Using EMF Models as DataSource
Using EMF Models as DataSource [message #553321] Tue, 17 August 2010 07:35 Go to next message
No real name is currently offline No real name
Messages: 3
Registered: August 2010
Junior Member
Hi,

i want to use an EMF Model as a DataSource for my Report. I followed
http://timezra.blogspot.com/2008/04/oda-ecore-getting-starte d-guide.html
and it worked fine for me. I can create a report using my EMF model as a
DataSource and adding DataSets to my report.

But now i reached a point where i have some problems with the structure
of my report. In my EMF Model i have a list of items and when i create a
DataSet with an OCL query which gets the data out of the list and stores
it into a table in my report the elements aren't sorted anymore. So the
entries in the table aren't in the same order like they are in my array
list. I want to create a table where the first column should have an ID
and this ID can be the list entries position and afterwards i could sort
my table ascending for this attribute but how can i get the position? Or
is there another possibility to get my list in an ordered way?

Besides i have the following problem. I created a class in my EMF Model
and two subclasses inherit from it. Now i want to create a DataSet for a
table in which all three classes may be inserted. So i need somekind
instanceof check?! Any ideas?

Thanks in advance.
Re: Using EMF Models as DataSource [message #553534 is a reply to message #553321] Tue, 17 August 2010 20:15 Go to previous message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Any chance you could take a screenshot of the problem, ie the table and
explain what you need? email it to me at jasonweathersby at windstream
dot net.

Jason

n 8/17/2010 3:35 AM, bora kiliclar wrote:
> Hi,
>
> i want to use an EMF Model as a DataSource for my Report. I followed
> http://timezra.blogspot.com/2008/04/oda-ecore-getting-starte d-guide.html
> and it worked fine for me. I can create a report using my EMF model as a
> DataSource and adding DataSets to my report.
>
> But now i reached a point where i have some problems with the structure
> of my report. In my EMF Model i have a list of items and when i create a
> DataSet with an OCL query which gets the data out of the list and stores
> it into a table in my report the elements aren't sorted anymore. So the
> entries in the table aren't in the same order like they are in my array
> list. I want to create a table where the first column should have an ID
> and this ID can be the list entries position and afterwards i could sort
> my table ascending for this attribute but how can i get the position? Or
> is there another possibility to get my list in an ordered way?
>
> Besides i have the following problem. I created a class in my EMF Model
> and two subclasses inherit from it. Now i want to create a DataSet for a
> table in which all three classes may be inserted. So i need somekind
> instanceof check?! Any ideas?
>
> Thanks in advance.
Previous Topic:BIRT for beginners
Next Topic:War File Export not available in BIRT 2.6.1 runtime
Goto Forum:
  


Current Time: Tue Sep 30 11:55:57 GMT 2014

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

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