on 2022 May 03 4:15 PM
Hi,
i have created a newly FIORI App via VS-Code and added the attachment service.
Now i need to integrate a formatter fucntion which is then not found.
Here is my manifest.json
And here is my formatter function
Debugger says
I think i am missing some declaration.
Any ideas how to solve this issue?
Thanks
Robert
Hi,
please check how to define classes:
sap.ui.define([], function () {
"use strict";
return {
statusText: function (sStatus) {
var resourceBundle = this.getView().getModel("i18n").getResourceBundle();
switch (sStatus) {
case "A":
return resourceBundle.getText("invoiceStatusA");
case "B":
return resourceBundle.getText("invoiceStatusB");
case "C":
return resourceBundle.getText("invoiceStatusC");
default:
return sStatus;
}
}
};
});
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
return { returnAttachmentKey: function (....) {
instead of the following (see example)
returnAttachmentKey: function...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
in your declare, you have "Component" in the name, probably you have to remove it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
62 | |
12 | |
7 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.