I am writing an new api transaction and have an input field defined as 1 numeric (Type=N, Length=1).
The input value is used to update a field in a table but only if the user has entered a value (valid values are 0 to 4) -- in other words, if the user enters a blank (space) or nothing at all (null), the table field will not be updated.
I have control of the null value:
if (mi.in.get("PDCC") == null) updateField = false
But I'm having trouble catching the blank value.
I have tried the following but it didn't work.
String s = mi.inData.get("PDCC") == null ? "" : mi.inData.get("PDCC").trim()
if (s == "") updateField = false
Does anybody have a suggestion?
