Parameter passing from one XMLview(list) to another XMLview(list) on SAPUI5 -
I'm new to SAPUI5 to ask for your advice to solve a problem, my requirement is like this:
< Blockquote>The first page shows a list on the XMLview on the product page. The page shows the list on the XMLView on the storage bin for this product in the warehouse on the third page then show the details of the storage bin
I Created an odata, two types of entities: both the product and the bin have a gatement set set applied, I Deficit is the result of Odata OK. My problem is on the second XMLview page, where I have a hard time setting the item on sap.m.list ... My XML looks like this, the problem is that all the hard and hard, which I tried to achieve Was it worth passing by 1 page on the product / plant / warehouse ... Please advise how can I resolve this dynamic value assignment. much appreciated.
& lt; Page title = "warehouse storage bin list" showNavButton = "true" navButtonPress = "handleNavButtonPress" & gt; & Lt; List item = "{/ bin? $ Filter = Lgnum eq 'XXX' and Matnr eq 'XXXXXX' and Werks eq 'XXXX'}" & gt; & Lt; ObjectListItem type = "active" press = "handleListItemPress" title = "{StgeBin}" intro = "{StgeType}" number = "{stock}" NUMBERUNIT = "" & gt; & Lt; Attributes ObjectAttribute = "" & gt; & Lt; / Attributes & gt; & Lt; / ObjectListItem & gt; & Lt; / List & gt; & Lt; / Page & gt; BR, J
I think you already Only know how Sap.m. Navigate between pages in if it is not the main method, then you are using ( sap.m.App , if you use sap.m.SplitApp
Information parameter Assuming that you use sap.m.List to trigger navigation on your first scene. It may look like this: View1.view.xml View1.controller.js View2.controller.js You have to set your binding in the code because you do not know the binding path during visual creation. I hope Land that is not run code found he was trying to do that. Let me know if you encounter problems. BR Chris Odata (sPageId, sTransitionName, OData, oTransitionParameters) Code> - This optional item can be loaded with any payload data that should be made available on the target page on the Target page, in the "first show" event this data object is referred to as "data" T will be included as.
page title = "product" & gt; & Lt; List items = "{/ products}" selectionChange = "On-Change Change" & gt; & Lt; Standardizedlist title = "{title}" /> & lt; / List & gt; & Lt; / Page & gt;
onSelectionChange: function (oEv) {var oItem = oEv.getParameter ("ListItem"); Var oApp = // Your app / binding path will be something like "/ Product / 4" (the fifth item selected) oApp.to ("view2", "slide", {path: oItem.getBindingContextPath ()} )} onInit: function () {var self = this; . This.getView () addEventDelegate ({onBeforeShow:. Function (oEv) {var detailBindingPath = oEv.data.path; // based on the selected binding path oList = self.getView () based on the view2 binding installation byId ("list" ); OList.bindItems (detailBindingPath + '/ bin', & lt; YOUR_TEMPLATE & gt;, null, [new sap.ui.model.Filter ("Lgnum", sap.ui.model.filterOperator.EQ, 'XXX' ), New sap.ui.model.filter ("Matnr", sap.ui.model.filterOperator.EQ, 'XXXXXX'), new sap.ui.model.Filter ("Werks", sap.ui.model.FilterOperator .EQ, 'XXXX')])}}}}};}
Comments
Post a Comment