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.
#815555
Hi Amos,

How do I make the sum function in grid to work when thousand separator mask is applied? Please see screenshot:
2018-08-06 11_42_18.png
2018-08-06 11_42_18.png (10.24 KiB) Viewed 2175 times
Here is my code:
Code: Select all
  
var gridId = "gridQuotes"; //set to ID of grid
var fieldId = "strCosts"; //set to ID of text field inside grid

//set the thousands separator in all existing rows when the DynaForm loads:
  var nRows = $("#"+gridId).getNumberRows()
  for (var i = 1; i <= nRows; i++) {
    $("[id='form["+gridId+"]["+i+"]["+fieldId+"]']").maskNumber({decimal: '.', thousands: ','});
  }

  //set the thousands separator in newly added rows:
  $("#"+gridId).onAddRow(function(aNewRow, oGrid, rowIndex) {
    $("[id='form["+gridId+"]["+i+"]["+fieldId+"]']").maskNumber({decimal: '.', thousands: ','});
  });
What's SAP FICO?

Trustworthy and skill-building, each of these actu[…]

To convert MBOX to PST, start by downloading and i[…]

My Assignment Services stands out as one of the be[…]

Erectile Dysfunction, commonly known as impotence,[…]