Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Invalid
-
None
-
None
-
None
-
AS400 using RPG ILE
Description
I am trying to add the following attributes:
id=2048
qualifiers=false
reqval=false
selected=true
using the code snippet below, in a loop
I am ending up with:
false="false"
id="2048"
true="true"
Eval %Str(strgbuf@:256) = AttrName2C
Eval XMLString1@ =
QxmlTranscodeToUNICODE(strgbuf@:
Qxml_CHARSTR:%Len(%TrimR(AttrName2C)))
Eval %Str(strgbuf@:256) = AttrVal2C
If %Subst(AttrName2C:1:8) = 'selected'
Eval %Str(strgbuf@:256) = 'true'
EndIf
CALLP QxmlDOMElement_setAttribute
(NodePtr1@:
XMLString1@:
qxml_UNICODE:
%Len(%TrimR(AttrName2C)):
strgbuf@:
Qxml_CHARSTR:
%Len(%TrimR(AttrVal2C)))