sapui5 - sap.ui.model.odata.ODataModel passing "expand" parameters in read -


i'd pass expand parameters read because doesn't work if call service this:

omodel1.read("/linesset?$expand=tocells", { 

the read method expects map of options second argument in can define query using property urlparameters:

omodel1.read("/linesset", {     urlparameters: {         "$expand": "tocells"     } }); 

urlparameters: map containing parameters passed query strings

just don't forget include $ before expand indicate it's system query. otherwise, counted custom query.


btw.: try use odatamodel v2 instead of sap.ui.model.odata.odatamodel. latter 1 is deprecated.


Comments

Popular posts from this blog

inversion of control - Autofac named registration constructor injection -

verilog - Systemverilog dynamic casting issues -

ios - Change Storyboard View using Seague -