on 11-02-2023 11:58 AM
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.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
70 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
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.