Quantcast
Channel: SCN: Message List - SAPUI5 Developer Center
Viewing all articles
Browse latest Browse all 8124

Re: Add node into XML Model

$
0
0

Hi,

 

It was not a good solution as it creates the object without any model operation.

 

I also would like to destroy a node. I can destroy its children but not itself.

var sPath = selectedNode.getBindingContext().getPath();
var sPathParent = selectedNode.getParent().getBindingContext().getPath();
var bindingContext = selectedNode.getBindingContext();
var bindingContextParent = selectedNode.getParent().getBindingContext();
oModel.setProperty(sPath,"",bindingContextParent);
oModel.refresh();

Waiting to  achieve Adding/Removing nodes, i would post my tries.

 

Regards,

Marc


Viewing all articles
Browse latest Browse all 8124

Trending Articles