i have a NAB form with a text-area field, where multiple lines (by using the enter key.. ) can be entered..
In the RPG call that is used for saving the data into the file, i'm using the vvin_json- procedure
in the debug from the browser, i see the Json-string being sent, has "\n" as the CR/LF character..
However in RPG.. as a result of the the vvin_json, the lines are showing just the "n"
f.e i send 'line1\nline2' but after the vvin_json, in rpg, i'm receiving line1nline2 (the "" is missing)
i noticed that in file on the iseries itself, should normally contain the X'25' as the CR/LF character.
Can someone help in describing the best practice in handling CR/LF from within NAB?
thx in advance
i'm using
[
In the RPG call that is used for saving the data into the file, i'm using the vvin_json- procedure
in the debug from the browser, i see the Json-string being sent, has "\n" as the CR/LF character..
However in RPG.. as a result of the the vvin_json, the lines are showing just the "n"
f.e i send 'line1\nline2' but after the vvin_json, in rpg, i'm receiving line1nline2 (the "" is missing)
i noticed that in file on the iseries itself, should normally contain the X'25' as the CR/LF character.
Can someone help in describing the best practice in handling CR/LF from within NAB?
thx in advance
i'm using
PHP Code:
vvIn.fieldName = 'COMMENT';
vvIn.totalSize = %size(dsComment:*all);
vvIn.elementSize = %size(dsComment);
numElements = vvIn_JSON(vvIn:%addr(dsComment));
For ii= 1 to numElements;
gParm_Comment = dsComment(ii);
Endfor;
Comment