Using NT 11.13, Clarion 10, all other templates the latest.
I have a (more or less) working rest server. I receive some fields if I do a GET, for example:
"clientid" : 394,
"startatdate" : "2019-05-21",
"startattime" : "14:30:00",
"kmstravelled" : 0,
AND, there are fields that are not going out, like for example "device".
I need the client app to specify a field; for example, "kmstravelled".
Now, I did a standard PUT NetWebServiceMethod, which updates the data, BUT
My problem is it is emptying the fields not specified, instead of ignoring them. For example, if the user send just
"kmstravelled" : 25,
Then kmstravelled it's indeed updated to 25, but clientid, startatdate and startattime are put in zero; which I can solve if I send everything, but the REAL PROBLEM is that "device" is cleared as well, even if it is not in the json package!
This is a simplified example, the actual thing is complex (at least 20 fields), but that's what's happening. Fields that are not in the json package are being set to zero or blank, is that expected, or I'm doing something wrong (not there are much to do wrong, they is almost no code there, mostly all templates settings)?
Thanks,