cancel
Showing results for 
Search instead for 
Did you mean: 

How to pass dynamic field value in annotation @Consumption.filter.defaultValue

BikashR
Discoverer
0 Kudos
320

Hello,

I have requirement to display default value in selection field in FIORI element. For that I am using @Consumption.filter.defaultValue annotation. When I pass constant value in quote its working. But I want a dynamic value in selection field. How to pass dynamic field value in the following annotation @Consumption.filter.defaultValue.

Thanks

BernhardSiewert
Product and Topic Expert
Product and Topic Expert
0 Kudos
Hi, what kind of dynamic field value do you want to have there - can you pls. provide an example? A reference to an element is not possible, as there is no instance available in the filter.
View Entire Topic
MoritzM
Explorer
0 Kudos

I have a similar requirement that I would like to outline.
filtersection.png

I would like to dynamically pre-assign the Plant filter with a value that comes from a CDS view. For example, the value of the CDS view returns exactly the one value '1010' and this value should now be output as the default value in this filter field.

My OData V2 Service Binding provides the following entities
ServiceBinding.png
I_Plant = Input help
Main = Main entity
PlantDefVal = CDS View, which provides exactly one value for dynamic preallocation of the filter field.

How can this be implemented in a Fiori Elements List Page?

MoritzM
Explorer
0 Kudos
I have been able to find a solution for myself and work with an extension