Skip to Content
0
Nov 19, 2020 at 08:22 PM

How do I get the data of the application that is integrated into the page afterwards?

168 Views

There are two applications that add material to the table. I do this in the first application:

onBomConfirm: function(oEvent) {
	this.setBusy(true);
	this.deleteMessage();
	var aSelected = sap.ui.getCore().byId("list").getSelectedItems(),
		s = 0;
	if (aSelected.length === 0) {
		return;
	}
	var obj = {};
	var aCagriItems = this.oCagri.getProperty("/aCagriItems");
	this.oCagri.setProperty("/aCagriKItems", jQuery.extend(true, [], aCagriItems));
	var aCagriKItems = this.oCagri.getProperty("/aCagriKItems");
	for (var i = 0; i < aSelected.length; i++) {
		obj = aSelected[i].getBindingContext("oBildirim").getObject();
		obj.Quantity = "1";
		obj.NetValueI = undefined;
		obj.bQuantity = false;
		aCagriKItems.push(obj);
	}
	this.oCagri.setProperty("/aCagriItems", jQuery.extend(true, [], aCagriKItems));
	var aSendData = [];
	this.onBomClose();
	this._addMalzemeToService(aSendData);
}

Later I added a different application to this page. This application has the same data and must be done the same. In the second application, the material I choose over an image is automatically selected from the list.

And when I click it into the product, the add pop-up pop-up. The information of the material opens.

The data corresponding to the information about the second application in my hand:

oUrunData = {
	"Kod": "Matnr", 
	"Adi": "Maktx",
	"Miktar": miktar //quantity
};

With the "list" ID used in the first application, I can access the data of the other application. But I don't know how to do this. What can I do?