Questions and discussion about developing processes and programming in PHP, JavaScript, web services & REST API.
Forum rules: Please search to see if a question has already asked before creating a new topic. Please don't post the same question in multiple forums.
#824367
You can use PHP to calculate the grid's sum, but it is easier to use a hidden field in your Dynaform to store the grid's sum.

Create a hidden field whose ID and variable is "gridSum".
Then, add this JavaScript to your Dynaform:
Code: Select all
var formId = $("form").prop("id");
$("#"+formId).setOnSubmit( function() {
   var summed = $("#myGrid").getSummary("myFieldToSum");
   $("#gridSum").setValue(summed);
});
Where "myGrid" is the ID of your Grid and "myFieldToSum" is the ID of the grid field that is summed.

Then, in your gateway, you can use @#gridSum (as decimal number) or @%gridSum (as integer).

Get an instant solution to move emails to MBOX for[…]

Most Demanding OST to PST Converter

The most demanding OST to PST Converter is TrijaT[…]

Betvisa clone scripts are pre-built software solut[…]

A Bet365 Clone Script is essentially a ready-made […]