<apex:commandbutton action="{!savTable}" value="Save" id="saveAbove"reRender="Table" status="counterStatus"onComplete="calculateTotal();"/>
Function calculateTotal(){
$j( 'table[id$=Tableid] tbody').append('<tr><td><b>Total</b></td><td><b>'+ totalx +'</b></td><td><b>'+ totaly +'</b></td><td><b>'+ totalz +'</b></td><td><b>'+ totalPLAN +'</b></td><td><b>'+ total +'</b></td><td><b>'+ totalb +'</b></td></tr>');
}
Function calculateTotal(){
$j( 'table[id$=Tableid] tbody').append('<tr><td><b>Total</b></td><td><b>'+ totalx +'</b></td><td><b>'+ totaly +'</b></td><td><b>'+ totalz +'</b></td><td><b>'+ totalPLAN +'</b></td><td><b>'+ total +'</b></td><td><b>'+ totalb +'</b></td></tr>');
}
No comments:
Post a Comment