cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Value help is displaying by using @Consumption.valueHelpDefinition:

durgaprasanth_vemula
Participant
38,901

Hi,

I am using Value help is displaying by using @Consumption.valueHelpDefinition: but it is not displaying and please find the below code.

1)I had created the below CDS View to get the list of Document Types

2)In the below CDS View i am using Annotation @Consumption.valueHelpDefinition: and given element and name(CDS View name)

3) As per the below screen still appearing as normal which should appear as valuehelp

View Entire Topic
mdcastle
Active Participant
0 Likes

Create your value help e.g.

@AbapCatalog.sqlViewName: 'ZVHSALESORDTYPE'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'Sales Order Types VH'
@ObjectModel.resultSet.sizeCategory: #XS
@Search.searchable: true
define view ZCDS_VH_SALES_ORDER_TYPES
  as select from tvakt


{
      @Search.defaultSearchElement: true
      @ObjectModel.text.element: ['SalesOrderDescription']
  key auart,
      @Semantics.text: true
      bezei as SalesOrderDescription


}
where
  spras = 'E'

In your composite view

association [1]    to ZCDS_VH_SALES_ORDER_TYPES as _SalesOrderVH      on $projection.auart = _SalesOrderVH.auart
......
@ObjectModel.text.element: ['SalesOrderDescription']
auart,
@Semantics.text: true
@EndUserText.label: 'Sales Order Type'
_SalesOrderVH.SalesOrderDescription,
......
_SalesOrderVH,

In your consumption view

@Consumption.valueHelp: '_SalesOrderVH'
auart
durgaprasanth_vemula
Participant
0 Likes

mark_castle

Hi Mark,

As per your instruction i had tried but still it is not displaying and please find the below screen shots in details.

durgaprasanth_vemula
Participant
0 Likes

@mark_castle

Hi Mark,

But still it is same issue after following your instructions.

mdcastle
Active Participant
0 Likes

Post a screenshot of your OData service metadata showing the relevant fields and the association section. Also the local metadata.xml file in webapp->localService folder. Also, make sure that you have refreshed your Data Source in manifest (right click manifest.json -> Open Service Manager (if using BAS)).