You have a Tabular Form with 3 columns (Amount, Tax, Total) and want to populate the Total column with the sum of Amount and Tax as soon as Tax has been entered.
For “normal” page items there are lot of solutions on the OTN forum, where you just use
html_GetElement('P1_TOTAL').value = parseInt(html_GetElement('P1_AMOUNT').value, 10) + parseInt(html_GetElement('P1_TAX').value, 10);
But how does it work for Tabular Forms? Quite similar!
- Page HTML Header property:
- Tabular Form Element/Element Attributes property of the TAX column:
The easiest way to get them is to view the HTML source APEX generates, or use tools like FireBug – use the Inspect feature.