cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Value help on standard Fiori application using In App extension

DDEBORSHI
Explorer
0 Kudos
147

Hello Team,

I have one standard Fiori app and i have added two custom field using "Custom Fields" App. 
And also, I have added custom F4 help on these two fields using "Code list with CDS view". 

Up to this its working.

Issue I am facing--- 

My requirement is dependent on one standard field value my custom F4 (in newly created two fields) should be filter.  

Can you suggest how can I solve this issue?

Thanks

 

Accepted Solutions (0)

Answers (1)

Answers (1)

DiegoValdivia
Participant
0 Kudos

Hi,

The way I solved a similar requirement was by creating the Custom Field but DO NOT SELECT "Code list with CDS view".

Then, search for the CDS View where your custom field was added and then create a metadata extension. There you can add your own Value Help.

In my case I was asked to add a Value Help to a Custom field, but the value help should filter data based on other custom field:

 

@Metadata.layer: #CUSTOMER
annotate entity C_MaintWorkRequestOverviewTP
  with 
{
  @Consumption.valueHelpDefinition: [
    {
      entity: {
          name:     'ZVE_I_RISKS',
          element:  'RiskName'
      },
      additionalBinding: [{ element:      'Country', 
                            localElement: 'ZZCountry' }]
    }
  ]  
  ZZ1_Risk_Name_NTF;
  
}