The setAttribute method doesn't work. And manually adding a new and empty element doesn't work either.
When I leave a field which has binding empty, the nill attribute is automatically set to true.
Why can't I reproduce this by scripting? Does someone have a clue?
Thanks in advance!
Does anybody have a clue? I still
I think you can only do this with a loadXML method, makes it very clumsy by the following code;
var dataItems = xfa.datasets.createNode("dataGroup","items");
dataItems.loadXML('<item xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>',false,true);
Will produce the following xml
<item xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>