on 10-26-2009 5:32 PM
Hi Experts,
Could anyone suggest a script to get the current row index of the table in Print Form?
Thanks,
Abd-Al-Aleem
I figured out.
I can use the javascript this.index to get the current row index
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Pradeep,
Could you correct my logic here?
Var i;
// Get the current accounting document
var l_belnr = this.resolveNode("Row.BELNR");
// Get the number of rows in the internal table
var norows = xfa.resolveNodes("Data.Table.Row[*]").length;
// Loop until the same accounting document is reached to find the row index
for ( i=0; i<norows; i++)
{
if ( l_belnr = xfa.resolveNodes("Data.Table.Row["i"].BELNR").rawValue )
// Break for current record
break;
}
// Calculate the modulo 6
var j = i%6;
// Check if the modulo result is 0
if ( j = 0 );
I am writing this at row level to trigger a page break when the result of calculation is 0 which means for every 6th record.
thanks,
Abd-Al-Aleem
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.