Footer sum using data attribute in Datatables.net


JavaScript • JQuery • LotusScript

Here's your column html being generated in LotusScript via an WebQueryOpen agent

Call RT.AppendText(		|<td data-value="| & Format(downtimeperc,"0.00") & |" nowrap>| & Format(downtimeperc,"0%") & |</td>|)

The javascript code in the callback

var downtimeperc = api.column( 6, {page:'current'}).nodes().reduce( function (a, b) { return a + intVal($(b).data('value')); }, 0 );	

Written by fbrefere001

Posted by fbrefere001 on Monday February 9, 2026