[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.birt] Any scripted Data Source

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?