Skip to Content

SAPUI5 XML model add item

Mar 19, 2017 at 07:53 PM


avatar image
Former Member


I have an XML model bound to a table and I want to add a new row to the model. The XML data itself is rather simple:


Only relevant is the value <serial>, so it would be enough for me to add a new <serial> number to the model. I have read about document.createElement, which I guess could work for me, but I do not get it working.

I have this part in my controller:

	var oTable = this.getView().byId("tbl_det3_rfid");
	var oSerial = "1234567890";
	var oModel = oTable.getModel();
	var aData = oModel.getProperty("/tageventlist/tagevent/serial")

Can anyone help me how to get this done, so adding a new line to my model with the serial 1234567890?



10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers