Troubleshooting
Problem
Applying nullables to time fields within a Webservice is incorrectly returning empty values rather then the actual value.
Symptom
The scenario concerns an application which retrieves a basic record via a REST Webservice which in turn includes nullable time fields. Where users then edit the record to fill any of the time fields when the record is returned via the service those input values are ignored and the fields are returned as null.
A widget implementing a webservice call eg:
service MyWebservice
function testFunction(myTime time? in)
writeStdOut("Received time (must be current time): " + myTime);
end
will return the time as blank:"Received time (must be current time): "
Removing the nullable from the above service the applicable time is returned.
Log InLog in to view more of this document
Was this topic helpful?
Document Information
Modified date:
02 August 2018
UID
swg21665910