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).
Dell Printer Error State

You can fix the error by checking the network conn[…]

I have a problem where tasks on leaving the pause […]

Starting subprocess

I have a grid with multiple rows and it has a colu[…]

It is not a single field which is causing this is[…]