rbf_getFields not retrieving decimals correctly when comma i

Posted by Rollbase User on 12-Feb-2013 05:09

Hello, Since the latest releases, we can set decimal separator to be a comma (,) instead of a dot(.). However, when setting a comma as decimal parameter, some client-side AJAX based JavaScripts (rbf API) do not retreive decimals correctly. I have done the following tests:



// Test with rbf_selectValue : OK

function decimalTest1() {

   rbf_selectValue("SELECT decimalField FROM objectName WHERE id=recordId", callbackFunction1)

   function callbackFunction1(resultArray) {

      alert(resultArray); // Prints 14.25 : OK

   }

}



// Test with rbf_selectNumber : OK

function decimalTest2() {

   rbf_selectNumber("SELECT decimalField FROM objectName WHERE id=recordId", callbackFunction2)

   function callbackFunction2(resultNumber) {

      alert(resultNumber); // Prints 14.25 : OK

   }

}



// Test with rbf_getFields : NOT OK

function decimalTest3() {

   rbf_getFields("objectName", recordId, "decimalField", callbackFunction3)

   fu

All Replies

Posted by Admin on 12-Feb-2013 09:55

I'll take a look, but cannot deliver fix sooner then March 2nd

Posted by Admin on 12-Feb-2013 10:43

That's ok for us !

This thread is closed