@UI.selectionField: [{position: 30} - This annotation is responsible for showing the fields as Filters on the SmartTable. 'position' indicates at which position the filter will be placed.
@Consumption.valueHelpDefinition: [{ entity: { name: 'C_CountryVH', element: 'Country' }}] - This annotation is responsible for attaching a valid value help CDS to the filter. Here name: C_CountryVH is the name of the value help CDS and element: 'Country' is the field from the value help CDS which contains valid list of countries.
@Consumption.valueHelpDefinition: [{additionalBinding: [{ element: 'Country', localElement: 'Country' }]}] - This annotation is responsible for the dependency we want to maintain between the filters. This is used for Region and City fields. Region field only has dependency with Country but City has dependency with both Region and Country and hence you see two 'additional binding' in case of City. Here element: 'Country' means the element from the value help CDS and localElement: 'Country' means the binding with the local element Country of the main CDS which renders the Fiori app.
@Consumption.valueHelpDefinition: [{ entity: { name: 'C_CountryVH', element: 'Country' }}]
@Search.defaultSearchElement: true
@Search.fuzzinessThreshold: 0.7
@Search.ranking: #HIGH
@UI.textArrangement: #TEXT_ONLY
@UI.selectionField: [{position: 30}]
@UI.lineItem: [{ importance: #MEDIUM, position: 30 }]
Country;
@Consumption.valueHelpDefinition: [{ entity: { name: 'C_RegionVH', element: 'Region' }}]
@Consumption.valueHelpDefinition: [{additionalBinding: [{ element: 'Country', localElement: 'Country' }]}]
@Search.defaultSearchElement: true
@Search.fuzzinessThreshold: 0.7
@Search.ranking: #HIGH
@UI.textArrangement: #TEXT_ONLY
@UI.selectionField: [{position: 40}]
@UI.lineItem: [{ importance: #MEDIUM, position: 40 }]
Region;
@Consumption.valueHelpDefinition: [{ entity: { name: 'C_CityVH', element: 'City' }}]
@Consumption.valueHelpDefinition: [{additionalBinding:
[{ element: 'Country', localElement: 'Country' },
{ element: 'Region', localElement: 'Region' }]}]
@Search.defaultSearchElement: true
@Search.fuzzinessThreshold: 0.7
@Search.ranking: #HIGH
@UI.textArrangement: #TEXT_ONLY
@UI.selectionField: [{position: 50}]
@UI.lineItem: [{ importance: #MEDIUM, position: 50 }]
City;
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
28 | |
14 | |
12 | |
11 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 |