cancel
Showing results for 
Search instead for 
Did you mean: 

Adaptation project for Odata V4 Standard App: Add custom filter

AnmolBhat
Participant
0 Kudos
154

We wanted to extend Mange Sales contract app for custom requirements.

The App uses OData V4 protocall. 

New adaptation project is created and added new Fragment and controller to the filterbar using adaptation editor.

But, here I am not able to add a custom filter field using customcontrol.

All the tutorials and blogs related to adding custom filter field are refering to Smart Filter and smart tables but in OData V4, we do not have smart filter.

 

AnmolBhat_0-1733744483946.png

 

Could you please guide me to the documentation for adding custom filters to Standard Odata V4 app?

 

 

Accepted Solutions (0)

Answers (1)

Answers (1)

junwu
Active Contributor
0 Kudos
AnmolBhat
Participant
0 Kudos

Hi Junwu, thanks a lot for your reply.

However, I already tried this way but I get following error in the console.

 

 I guess, standard app of type Odata V4 is expecting MDC target aggregation only.

2024-12-10 10:56:11.183800 Change 'id_1733824468021_223_addXML' could not be applied. Merge error detected while processing the JS control tree. - Error: Error during execPromiseQueueSequentially processing occurred: The content of the xml fragment does not match the type of the targetAggregation: sap.ui.mdc.FilterField
    at .../resources/sap/ui/fl/library-preload.js:55:5445