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

Value help is displaying by using @Consumption.valueHelpDefinition:

durgaprasanth_vemula
Participant
38,899

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

Try adding

@ObjectModel.foreignKey.association: '_zi_doctype'

above blart in your Composite View.

However, looking at your OData service i would have expected to see an entry similar to the Company Code Value Help starting with

<EntityType Name="ZI_DOCUMENTTYPE_VH2"

so it looks like something is missing in the OData service. Have you tried re-publishing the OData service by activating the view with @Odata.publish: false, then re-activating with @OData.publish: true?

durgaprasanth_vemula
Participant
0 Likes

mark_castle

Hi Mark,

As per your suggestion i had added the @ObjectModel.foreignKey.association:'_zi_doctype' and also done the @Odata.publish: false, then re-activating with @OData.publish: true. but still it is not appearing.

1)

2)Please find the ODATA Service metadata

mdcastle
Active Participant
0 Likes

I’m out of ideas. The only thing I can think is that you’re seeing a cache issue in your browser, or the local metadata is out of sync.

durgaprasanth_vemula
Participant
0 Likes

@Mark Castle

Hi Mark,

The metadata.xml file in the LocalService in the Business Application Studio is not getting refreshed and it is not sync and that is the reason Valuehelp is not working.

As per the below screen the changes are reflecting and could you please tell me how to sync.

Note:I found the below issue because when i again created a New Fiori App and fetch the ODATA service and Valuehelp is working.

Now my issue is how the metadata.xml will be sync in Business Application Studio?

mdcastle
Active Participant
0 Likes

I’ve never found a way in which it refreshes every time to be honest. The easiest way is to copy the metadata from your /ifwnd/maint_service version and manually update the file in BAS.

durgaprasanth_vemula
Participant
0 Likes

@mark_castle

Hi Mark,

I found the below link and able to refresh now.

https://help.sap.com/viewer/17d50220bcd848aa854c9c182d65b699/Latest/en-US/8182ff3b19574f038bd636b999....

But still facing one more issue i.e "ValueListProvider - Missing primary ValueListAnnotation for ZC_POSTINGS_R2_CDS.ZC_POSTINGS_R2Type/BLART "

2)Please find the below which i had added to display Visual Filter and any thing more I need to add the below.

mdcastle
Active Participant
0 Likes

I already suggested you do that

durgaprasanth_vemula
Participant
0 Likes

@Mark Castle

Hi Mark,

yes you are right and now Metadata is getting refreshed could you please help me facing another issue.

But still facing one more issue i.e "ValueListProvider - Missing primary ValueListAnnotation for ZC_POSTINGS_R2_CDS.ZC_POSTINGS_R2Type/BLART "

2)Please find the below which i had added to display Visual Filter and any thing more I need to add the below.