Skip to main content

Posts

Showing posts from June, 2017

Oracle Apex - Tabular Form With JavaScript

The Function: function sumUpRows(f12,f05,f07,f09,f11){        var numofcols = arguments.length;        var numofrows = $("[name=" + arguments[1] + "]").length;        var summ =0;        var xy = parseFloat(document.getElementById("P56_INITIAL_BALANCE").value);        for(x=0;x<numofrows;x++){            for(i=1;i<numofcols;i++){             summ = summ + Number($("[name=" + arguments[i] + "]").eq(x).val());                        }            $("[name=" + f12 + "]").eq(x).val( parseFloat((Math.round(summ * 100) / 100)+xy).toFixed(2));        }     } Calling The function : javascript: sumUpRows("f12","f05","f07","f09","f11")