Quantcast
Channel: SCN : All Content - SAPUI5 Developer Center
Viewing all articles
Browse latest Browse all 6178

sapui5 StandardListItem

$
0
0

Hi All,

 

We are tyring to fetch details from an OData Url

 

http://xxx:portno/sap/opu/odata/sap/Z_PR_Release_SRV/BAPI_REQUISITION_GETITEMSREL(RelCode='L1',RelGroup='AA')

 

 

I want to fetch the Purchase Request No inside a list.

 

 

var sServiceUrl = "http://xxxportno/sap/opu/odata/sap/Z_PR_Release_SRV";

 

var itemtemplate = new sap.m.StandardListItem("PRlist",

{

title  :    '{PreqNo}',

 

 

type: "Navigation",


description : "{NetPrice}",

 

});

 

 

ListStandardNoImageNoHeader.bindaggregation("items",

{

 

     path : "/BAPI_REQUISITION_GETITEMSREL(RelCode='L1', RelGroup='AA')",

     template : itemtemplate

}

 

 

The list works fine, when there are no custom parameters added to the url. But when these parameters (RelCode='L1',RelGroup='AA), are added it fails.

 

1. How shall i pass the value to bind path?

 

2. How to add it to the list item?

 

 

Please help in resolving this issue.

 

Thanks,

Divya

 

 

,

 

 

 

 



 



Viewing all articles
Browse latest Browse all 6178

Trending Articles



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