|Using EMF Models as DataSource [message #553321]
||Tue, 17 August 2010 03:35
| No real name
Registered: August 2010
i want to use an EMF Model as a DataSource for my Report. I followed
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.
Powered by FUDForum
. Page generated in 0.02739 seconds