excel - Formatter parameter passes as null -
i trying export table data excel sheet. works ok without formatter. have format cells before converting table excel. i'm debugging code. formatter function's parameter passes null value. here code:
var oexport = new sap.ui.core.util.export({ exporttype: new sap.ui.core.util.exporttypecsv({ separatorchar: ";" }), models: this.getview().getmodel(), rows: { path: "/faaliyetservisiset" }, columns: [{ name: "kişi", template: { content: "{klnad}" } }, { name: "faaliyet", template: { content: "{falyt}" } }, { name: "süre", template: { content: { parts: ["sure"], formatter: function(ovalue) { // ovalue null that's problem !!!!!!! ovalue = ovalue + 2; return ovalue; } } } }, { name: "proje", template: { content: "{proje}" } }, ] });
i´m facing similar issue in data binding use cases. formatter function gets called initial data binding value can null or undefined. circumvent issue ignoring calls of formatter function simple null , undefined checks.
Comments
Post a Comment