I have a simple input field in a form…
{ type:"input", name:"SITELABORRATE", label:"Site Labor Rate", readonly:true },
I’m using setFormData, the json value is a zero like…
..."SITELABORRATE" : 0,...
but setFormData puts nothing in the field, it stays blank. All other fields populate just fine. This field will populate just fine also so long as the number is not 0. I need the zero to show.
Darya
October 21, 2013, 6:01pm
#2
Locally it works. But recommend you using correct syntax:
myForm.setFormData({“inp1”: “0”})
Please, attach demo wich reproduces this issue
docs.dhtmlx.com/doku.php?id=othe … leted_demo
That’s what I was afraid you’d say. I’m using Oracle backend with PL/JSON (json.org spec. And according to the spec for values…
A value can be a string in double quotes, or a number, or true or false or null, or an object or an array. These structures can be nested.
So that means…
..."SITELABORRATE" : 0,...
is valid. So can this be entered as a bug and fixed by DHTMLX please?
Darya
October 22, 2013, 9:09am
#4
Please, send your completed demo on support@dhtmlx.com with a link to this topic - we will fix it for you on your files.
The fix you sent me worked. Thanks guys!