Skip to Content
1
May 04, 2020 at 10:37 PM

Fiori List Report Action: Passing Parameters via Annotation

408 Views

I apologize if this is a basic question but I'm new to Fiori so I have been struggling with this for some time now. Is there a way to leverage annotations to pass parameters to an action that calls an import function? Can this only be done via code? If only in code, then where and how can this be done? It seems like a simple and common use case that I would think would have been handled via annotations but I certainly haven't figured out how to make that happen. Any help would be appreciated.

My use case is that I have an import function in my OData that has 2 import parameters, each of which shares a name of a field on my list report. I have added an action button to my Fiori List Report and, upon clicking the button, it creates the $batch request, but the body of the http request has only one call to the action and it shows no parameters no matter how many items I select from the list report.

Here is the list I'm using for my processing as well as the button for the action:

Upon clicking my button I get the following messages, which I assume is because of the missing parameters:

This is my HTTP Request Body:

Attachments

tasklist.png (24.1 kB)
tasklist.png (24.1 kB)
untitled.png (8.7 kB)
error2.png (8.2 kB)
untitled.png (8.7 kB)
error2.png (8.2 kB)
body.png (56.4 kB)