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).

Web3 development encompasses creating decentralize[…]

The Upland Clone Script, offered by Dappsfirm, rep[…]

Dappsfirm offers a bet365 clone script that mirror[…]

🚀 Tauchen Sie mit Immediate Alora AI in die Welt d[…]