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

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


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

onBomConfirm: function(oEvent) {
	var aSelected = sap.ui.getCore().byId("list").getSelectedItems(),
		s = 0;
	if (aSelected.length === 0) {
	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;
	this.oCagri.setProperty("/aCagriItems", jQuery.extend(true, [], aCagriKItems));
	var 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?