cancel
Showing results for 
Search instead for 
Did you mean: 

How to have a search help for an input paramter of a RAP Action ?

sebtalasi
Explorer
0 Kudos
325

Hi, 

I have a RAP custom action with an input parameter. It's working fine but I would like to offer a value help to users (a dropdown would be the best!). 

In my behavior definition I have : 

action ( features : instance ) myAction parameter myAbstractInputEntity result [1] $self;

Here is my abstract entity 

@EndUserText.label: 'Input for release code'
define abstract entity myAbstractInputEntity
{
      @Consumption.valueHelpDefinition: [{ entity:{name: C_PurReleaseCodeSrchHelp', element: 'PurchasingReleaseCode ' }}]
        key PurchasingReleaseCode     : frgco;

}

Here is the ouput: 

sebtalasi_0-1727967626171.png

I couldn't find anything that works on SCN nor in RAP/CDS documentations... 

Any suggestion would be really appreciated! 


ABAP RESTful Application Programming Model 

View Entire Topic
junwu
Active Contributor
0 Kudos

check if that valuehelp entity is exposed in your odata service.

sebtalasi
Explorer
0 Kudos

Thanks, that's the missing part. I declared the abstract entity used for the search help in my service definition and now it works.

sebtalasi
Explorer
0 Kudos

I also changed the manifest as suggested by @MioYasutake.