BIRT Scripted data source [message #1058480] |
Tue, 14 May 2013 06:36  |
Eclipse User |
|
|
|
I am confusing about the return statements with if conditions. Say if i have three nested if conditions and if i want to loop through the third if condition till the condition satisifies, what should i do?
If i put return true in third if statements, its going to untermination status(infinite loop).
Given below the example:
if(size1<pol.size()){ // pol block
ins = pol.get(size1);
if(size2<ins.size()){ // ins block
ct = ins.get(size2);
if(size3<ct.size()){ // ct block
acce = ct.get(size3);
row["one"] = acce.firstVal();
row["two"] = acce.secondVal();
size3++;
return true;
} // ct block
size2++;
return true;
} // ins block
size1++;
return true;
} // pol block
return false;
My ct block is executed once and going back to pol block and started execution again. How to get rid of this problem?
Does any body have an idea on how to code nested if conditions logic in scripted data source.
|
|
|
|
Powered by
FUDForum. Page generated in 0.07701 seconds