on 2024 Aug 02 9:19 AM
In the ME51N Transaction code used to create a new “Create Purchase Requisition” in Fiori App, we need support in JS UI5 as follows:
We have a requirement to read the existing data model and deal with it, how can we loop the above table to get the current data?
Sample JS Code:
var xPathById = "//div[@data-bgui-sid='wnd[0]/usr/subSUB0:SAPLMEGUI:*/subSUB2:SAPLMEVIEWS:1100/subSUB2:SAPLMEVIEWS:1200/subSUB1:SAPLMEGUI:3212/cntlGRIDCONTROL/shellcont/shell/rowcol']";
var table = document.evaluate(xPathById, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
var otable = sap.ui.getCore().byId(table.id);
var i = otable.getVertScrollSize(); /*otable.getVertScrollPosition();*/
otable.setVertScrollPosition(i);
otable.getVerticalScrollBar().fireScroll(x);
What params need to be passed as var X above?
Our reference is API Reference - Demo Kit - SAPUI5 SDK (ondemand.com)
Request clarification before answering.
| User | Count |
|---|---|
| 11 | |
| 6 | |
| 6 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.