download: function(oevent) { var surl = "/sap/opu/odata/sap/zdemo_gw_srv_srv/salesorderset?$format=xlsx"; var encodeurl = encodeuri(surl); sap.m.urlhelper.redirect(encodeurl, true); } i writing code in sapui5 cloud services throwing following error on first line:
error:syntax error:eslint(syntax-parse):unexpected identifier javascript
you need append comma after closing bracket of oninit.
oninit: function() { }, download : function() { } beside download bad name function.
Comments
Post a Comment