BC472Part VIBonus (Web hosting india) ChaptersappendCell(newRow, Q4 , getPercentage(accumQ4A, accumQ4F) + % );

BC472Part VIBonus ChaptersappendCell(newRow, Q4 , getPercentage(accumQ4A, accumQ4F) + % ); var grandTotalFcst = accumQ1F + accumQ2F + accumQ3F + accumQ4F; var grandTotalActual = accumQ1A + accumQ2A + accumQ3A + accumQ4A; appendCell(newRow, grandTotal , grandTotalFcst +
+ grandTotalActual); appendCell(newRow, grandTotal , getPercentage(grandTotalActual, grandTotalFcst) + % ); } function appendCell(Trow, Cclass, txt) { var newCell = Trow.insertCell(Trow.cells.length); newCell.className = Cclass; newCell.innerHTML = txt; } function deleteRows(tbl) { while (tbl.rows.length > 0) { tbl.deleteRow(0); } } Many standalone statements at the end of the drawTextTable()function are devoted exclu- sively to generating the Grand Total row, in which the accumulated column totals are entered. At the same time, the getPercentage()function, described earlier, is invoked several timesagain to derive the quota percentage for the accumulated grand total values in each quarteras well as the complete year. select controlsTo round out the code listing for this application, the values assigned to the two selectele- ments obviously have a lot to do with the execution of numerous functions in this application. Nothing magic takes place here, but you can see the extent of the detail required in assigningscript-meaningful hidden values, and human-meaningful text for both selectelements. Forexample, dividing lines help organize the long sort key list into three logical blocks.

Sort by:

   Ordered:

Leave a Reply