NewBie: Scripted DataSources/Datsets ...also charting issues [message #100231] |
Sat, 17 December 2005 18:27  |
Eclipse User |
|
|
|
Hi Guys,
I've installed 2.0M3 and i have java classes that provide me with a
collection of objects, which i then want to display in multiple tables and
group by different keys (e.g, table by customer, another table by product,
another table by sale amounts, etc)
From examples, i see that people typically implement the open/fecth
functions for the data set. I've noticed that this gets called everytime a
table is populated with the dataset. Now, the java code i have is quite
expensive to run and i want to run it once, and then only use the fetch to
populate the rows. Where should this be done? I currently have a hack in the
open function so that it only gets data from my object once:
//open event script
count = 0;
if (params["load"]){
// call my object
importPackage(Packages.com.test);
data = CustomerDataFactory(params["starttime"], params["stoptime"]);
params["load"]=false;
}
//fetch script
if (count < data.size()){
//populate rows
.....
return true;
}
return false;
The number of rows i have is also potentially large, so i find the report
generation taking quite some time. Is ther a more correct way of doing this?
Also, if i want to share the "data" object with another report (for instance
making a report that analyses only data for a particular customer), is that
posiible?
And finally, if i try to chart something with this dataset, i get a lot of
exception in eclipse...but eventually it plots something.
Sorry for the long list...
Jeff
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.25892 seconds