This event occurs on the application footer display.

This event occurs after the processing of the grid lines, during the display of the HTML elements of the page footer.

onFooter is used when we want to display some information in the footer, such as a sales total or a legend for a line graph.

onFooter runs only when the option to show footer is enabled in the application's layout settings.


E.g: We want at the bottom of the application to display the total value of orders displayed in the grid of an invoice, with a 10% discount:

sc_lookup(ret," select sum( valueitem ) from sales_item where sale_id={sale_id} ");

[v_footnote] = {ret[0][0]} * 0.1;