cancel
Showing results for 
Search instead for 
Did you mean: 

formatter function ... not found! SAPUI5 Attachment Reuse

0 Kudos

hello,

I am trying to reuse the attachment service in a List Report - Fiori Elements template.

The issue seen in console log is "formatter function adnoc.sapfin.invoice.zfi_inv_create2.model.formatter.returnAttachmentKey not found! - "

The attachment component is visible, but issue is while calling the formatter function to set the "Object Key".

Any pointers to solve the issue is much appreciated.

issue-attachment-reuse.jpg

0 Kudos

please see attached

Margot
Product and Topic Expert
Product and Topic Expert

Please share your code - how did you define the formatter, how do you call it, all those things.

0 Kudos
issue-attachment-reuse.jpg

hello,

Attached is the formatter function and it is being called from manifest.json file under the "embeddedComponents".

Below from manifest file.

"embeddedComponents": {

"simple::Attachments": {

"id": "simple::Attachments",

"componentName": "sap.se.mi.plm.lib.attachmentservice.attachment.components.stcomponent",

"title": "",

"settings": {

"mode": "{= ${ui>/editable}?'C':'D'}",

"objectType": "ZFI_DOCNUM",

"objectKey": "{parts:[{path:'docnum'},{path:'DraftUUID'}],formatter:'adnoc.sapfin.invoice.zfi_inv_create2.webapp.model.formatter.returnAttachmentKey'}"

}

}

}

}

Accepted Solutions (0)

Answers (0)