Questions and discussion about developing processes and programming in PHP, JavaScript, web services & REST API.

Moderator: amosbatto

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).
mysqli_free_result() error

Hello good afternoon I am having the same problem[…]

Thanks!

Hi, This user API https://wiki.processmaker.com/[…]

display pdf in panel control

Is there any solution?