Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9159

Re: oData-Service in XML-View Table

$
0
0

Yes, I read and fix the issues of DJ. The coding should be right.

 

Component.js

var url = "http://.../sap/opu/odata/sap/ZPRODUCT_SRV/";

  var oModelData = new sap.ui.model.odata.ODataModel(url, true, "user", "password");

  oView.setModel(oModelData, "odata");

 

Detail.View.xml

<Table

         inset="false"

         items="{/ProCollectionSet}">             // Issue 1 by DJ -> EntitySet Name

   

   ...

 

<items>

           <ColumnListItem>

             <cells>

               <ObjectIdentifier

                 text="{odata>ProductId}" />       // Issue 2 by DJ -> Name of items

               <ObjectIdentifier

                 text="{odata>ProductName}" />

               <ObjectIdentifier

                 text="{odata>ProductDesc}" />               

             </cells>

           </ColumnListItem>

         </items>

 

And just to be on the safe side (Issue 3 by DJ), I run the Launchpad and the Application in the chrome browser with disabled web security.

 

Curios things - no error and no conent.


Viewing all articles
Browse latest Browse all 9159

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>