Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Any scripted Data Source
Any scripted Data Source [message #365625] Fri, 17 October 2008 07:53
Marcio Jota Coelho is currently offline Marcio Jota Coelho
Messages: 5
Registered: July 2009
Junior Member
I need help for create any script data source
and read this if a only data set.

I try create a data source for read any others data and create a data set
for this data source.

But... Not possible access other data source from method open.

Ex:
DataSource1 open:

Data1 = [ ['Test1','Test2'] ];


DataSource2 open:

Data2 = [ ['Test3','Test4'] ];



DataSource3 open:

currentrow=0;
Data3=new Array();
for (var i=0;i<=Data1.length;i++) {
Data3.push(Data1[i]);
}
for (var i=0;i<=Data2.length;i++) {
Data3.push(Data2[i]);
}
totalrows3=Data3.length;


DataSet Fecth:

if (currentrow>=totalrows3){
return (false);
}
var line=Data3[currentrow];
row["col1"]=line[0];
row["col2"]=lin2[1];
currentrow=currentrow+1;
return (true)


Data2, Data1 not exist in datasource3 open method.
Any idea for fix this problem?
Previous Topic:Scripted Data Source Error
Next Topic:BIRT Scripting - Class location problem
Goto Forum:
  


Current Time: Thu May 23 09:30:49 EDT 2013

Powered by FUDForum. Page generated in 0.02126 seconds