on 2024 Oct 29 9:23 AM
Hi Experts!
GoodDay!
This issue was raised in between the development (when adding attachment feature to my CAP application – used @cap-js/sdm library as mentioned in CAPIRE documentation)
Below is the structure of my header and attachment entity.
InvoiceHeader – Entity
Attachment – Entity
I’ve implemented a custom handler for InvoiceHeader entity on Update event.
I’m running my application in a hybrid mode and I’m opening my annotated UI application (built using FPM). When trying to edit a record and saving it showing me the below error.
EKEYTYPE: The key argument has to be of type `string` or `number`. Found: `undefined`
When I’m debugging it, the error was coming from the SELECT statement (which was working previously) line no.103 like in the below screenshot. However the query executed successfully where you can see the result in aHeaders variable.
I’m sure “ID” is the only key for InvoiceHeader Entity and the value is coming via “req.data.ID” parameter.
I’m trying to figure it out, I’m not sure where I’m lagging.
Help me to resolve this issue.
Thanks in Advance!!
Best Regards
Boopalan M
SAP Business Application Studio , SAP Cloud Application Programming Model ,
Request clarification before answering.
Hi @Boopalan ,
Could you take a look at the Serving Media Data topic in the documentation?
entity Books { //...
image : LargeBinary @Core.MediaType: imageType;
imageType : String @Core.IsMediaType;
}Maybe that's what you are looking for instead of the attachments and sdm plugins.
Regards,
Peter
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 17 | |
| 8 | |
| 8 | |
| 6 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.