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

Re: Question about Odata Query option ($top)

$
0
0

Hi Vipluve,

Thanks if u do find out let me know, Yes ToSalesOrders I issue the "Expand" statement during binding of the view to the root collection (In this case BusinessPartnerSet)

 

                                                _onObjectMatched : function (oEvent) {

                                                                var sObjectId = oEvent.getParameter("arguments").objectId;

                                                                this.getModel().metadataLoaded().then( function() {

                                                                                var sObjectPath = this.getModel().createKey("BusinessPartnerSet", {

                                                                                                BusinessPartnerID :  sObjectId

                                                                                });

                                                                                this._bindView("/" + sObjectPath);

                                                                }.bind(this));

                                                },

 

  

 

                                                _bindView : function (sObjectPath) {

                                                                var oViewModel = this.getModel("salesOrderView"),

                                                                                oDataModel = this.getModel();

 

                                                                this.getView().bindElement({

                                                                                path: sObjectPath,

                                                                                parameters: {

                                                                                                expand: "ToSalesOrders"

                                                                                },


Viewing all articles
Browse latest Browse all 2355

Trending Articles