Value not getting in Variable in BI (xml code)

sillajose

Member
I want to pass the "
Quantity_ID10" value to the variable "
PrintCpy" in BI publisher using xml code, and I used the following code

<?if:Template_ID8='IPC'?>
<?xdoxslt:set_variable($_XDOCTX,’PrintCpy’,Quantity_ID10)?>
<?for-each@section:xdoxslt:foreach_number($_XDOCTX,1,xdoxslt:get_variable($_XDOCTX,’PrintCpy’),1)?>
<?call:imgctrl?>
<?end for-each?>
<?end if?>
It shows error"Error invoking 'foreach_number':'java.lang.NumberFormatException" when giving the variable 'PrintCpy' but when giving quantity value instead of "
PrintCpy"(<?for-each@section:xdoxslt:foreach_number($_XDOCTX,1,xdoxslt:get_variable($_XDOCTX,’2’),1)?>)
it is Working
.

can anyone suggest a solution to get value in for loop..

 
Last edited:
Back
Top