a month ago - last edited a month ago
I have a use case where I want to use association in the custom entity in RAP. The Association/Composition is not with the child but it is pointing to the independent entity. Is there a way we can achieve this?
Basically I want to expose value help in custom entity (From some other entity) which the framework is not allowing me.
Request clarification before answering.
valuehelp doesn't need association. you just specify the cds as the valuehelp.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Rohitautodesk ,
Maybe I misunderstand the question, but here is a quick example of how I implemented a value help in a (I admit, very simple) RAP app.
I created a simple value help CDS View for "Country" and then added that value help as a annotation in the CDS view that is used by the RAP application:
@AbapCatalog.viewEnhancementCategory: [#NONE]
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Country'
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.usageType:{
serviceQuality: #X,
sizeCategory: #S,
dataClass: #MIXED
}
@ObjectModel.dataCategory: #VALUE_HELP
@ObjectModel.representativeKey: 'Country'
@Search.searchable: true
define view entity ZR_T005T
as select from t005t
{
@EndUserText.label: 'Country Code'
key land1 as Country,
@Search.defaultSearchElement: true
@Semantics.text: true
@Search.ranking: #HIGH
@Search.fuzzinessThreshold: 0.75
@EndUserText.label: 'Country'
landx50 as Description
}
where spras = 'E'
@Consumption.valueHelpDefinition: [{
entity : { name: 'ZR_T005T' , element: 'Country'},
label: 'Country' , useForValidation: true, distinctValues: true
}]
When creating a draft, the value help is now available.
Hope this helps 🙂
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
21 | |
8 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.