My application has a Service Request page. Everything is set-up for selecting the service options. Now it needs to reflect the selected items in the side column to give a total Job Estimate… as the items are selected.
The serviceItem table is populated with a timeEstimate for each itemName.
The jobClass table is populated with the hrRate for each className. So, the rate/hr depends on the job classification.
There is a prepared html table in the side column to hold the information, I do not know 1) How to reflect the selections in the side as they are selected and 2) How to do the calculations on the selected items .
The selectable items are in activeListBox, multiple selection, and are posted to the serviceRequest table as a comma seperated string.
The time for each item doesn’t have to display, just the total time of the selected items
<TABLE summary="This table represents the estimated charges for services selected on the Service Request Form. Total estimated time multiplied by the hour rate.">
<CAPTION>Service Estimate</CAPTION>
<TR>
<TH id="t1">Items</TH>
<TH id="t2">Time Est.</TH>
<TR>
<TD headers="t1">itemName itemName ...</TD>
<TD headers="t2">totalTime</TD>
<TR>
<TH id="t1">Hour Rate</TH>
<TH id="t2">Total</TH>
<TR>
<TD headers="t1">hrRate</TD>
<TD headers="t2">T*hR=x</TD>
</TABLE>