Announcements
No record found.
Hello Guys!
I need do smth like that in x++: <Record table="ManualDiscount">
I can create xml element but without 'ManualDiscount'.
Someone can help me?
Thanks a lot!
*This post is locked for comments
We need to know how you're creating XML now before we can say how to change it to skip an element.
...
xmlDoc = XMLDocument::newBlank();
nodeRoot = xmlDoc.documentElement();
PanelNode = xmlDoc.appendChild(xmlDoc.createElement("Recordtable"));
PanelNode.text("discountTable_itp");
PanelNode1 = PanelNode.appendChild(xmlDoc.createElement('Fields'));
actionTypeNode = PanelNode1.appendChild(xmlDoc.createElement('ActionType'));
actionTypeNode.text(actionType);
LengthNode = PanelNode1.appendChild(xmlDoc.createElement('StoreId'));
LengthNode.text(_storeId);
WidthNode = PanelNode1.appendChild(xmlDoc.createElement('DiscountID'));
WidthNode.text(discountTable_itp.DiscountId);
Now, i have smt like that:
<RecordTable>
<Fields>
</Fields>
</RecordTable>
I want to smt like that:
<RecordTable = "Blablabla">
..
It's called 'attribute'.
panelNode.setAttribute('table', 'Blabla');
Thank You Martin :)
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our 2026 Super Stars!
We are thrilled to have these Champions in our Community!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Joris dG 5
Andrew Jones a1x 2
GL-01081504-0 1