cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Fiori Best Practice

YanGerzon
Participant
0 Kudos

Hi,

I wanna ask about the best approach for the following requirements:

I need to have a report list like screen with a table that gets data from an external Odata V2 service(BYD System).
It needs to have a few filter fields with value help that also get data from the same external Odata service.
The user then needs to select one or more rows(sometimes thousands)and press a button that then sends a call to the external odata service to run a function exposed in the external odata service for each row.
I can potentially also use a CPI flow to assist me.

What I have tried.
1)Making a SAP Fiori List Report Elements App.
It was working until I noticed noticed that I cannot implement a filter with Value help and search assist because it requires an Odata v4 version.

2)Making a freestyle Fiori app.
This works fine but I then find myself having to write a lot of code in my controller for the main view cause value help fields require several functions like value help search,request, close etc..
I thought about having one controller for each value help but it still results in a lot of code in the main controller as far as I can tell.
I also had to write code to direct the different values from the value help fields and how they are added to the final search call for the table.
The App does use smartfilter and smarttable but I find myself having to insert certain things into the get calls the App is making in the controller.
I have a main view file, a fragment view for each value help field and one controller for everything.

What should the proper project structure be?

Should I make a full stack application that has CAP tools?

Thanks for any advice.

Accepted Solutions (0)

Answers (1)

Answers (1)

AlexNecula
Active Contributor

I don't really understand why a filter with value help would require odata V4. Did you have any issue when using the ValueList annotation in the annotation.xml file like in the below link?

Smart Field with Value Help using Annotations

YanGerzon
Participant
0 Kudos

The issue is that when you press the value help button and get a list of all avialable values you cant search in them:

Because the search call uses things like search and search-focus in the Get call.

AlexNecula
Active Contributor
0 Kudos

101ger, I am able to search and filter just fine on a service V2. It's about what annotations you set.