cancel
Showing results for 
Search instead for 
Did you mean: 

RAP add table in ObjectPage

09-03-2024 3:25 PM
thomas_knobloch Product and Topic Expert
5728 views 12 comments Go to solution
0 Likes
SAP Managed Tags
Subscribe

Hi guys,

I'd like to visualize content of a CDS view which is associated to my view entity which I already display based on annotations.

thomas_knobloch_0-1725369702902.png

If I do like this the annotationPath can't be found when testing the app.

thomas_knobloch_1-1725369834020.png

Remark: _ChangeDocuments is not a composition child.

Thanks for help, Thomas

0 Likes

Accepted Solutions (1)

Accepted Solutions (1)

junwu
SAP Champion
SAP Champion

Does that target cds have lineitem annotation?

thomas_knobloch
Product and Topic Expert
Product and Topic Expert
0 Likes
No, the target view has no UI annotations
junwu
SAP Champion
SAP Champion
0 Likes

if you are integrating standard change document component, that is not how it can be integrated,

thomas_knobloch
Product and Topic Expert
Product and Topic Expert
0 Likes
My question is more general. I want to display an associated CDS view as a table in the ObjectPage.
junwu
SAP Champion
SAP Champion
0 Likes
if that is the case, your target cds needs to have lineitem annotation.
thomas_knobloch
Product and Topic Expert
Product and Topic Expert
0 Likes
Now the target view has own metadata extension, still same problem. Seems like it's not possible to display a associated view as a table in the object page...;-(
junwu
SAP Champion
SAP Champion
in your service definition, expose "<CDS_OF_THE_TARGET>"
thomas_knobloch
Product and Topic Expert
Product and Topic Expert
Now it works 🙂

Answers (2)

Answers (2)

dhegde
Participant
0 Likes

Along with adding UI.lineItems annotations to target CDS view of the association, also do these:

  • Expose the association in the entity where it is defined
  • Expose the target of the association in your service definition

 

thomas_knobloch
Product and Topic Expert
Product and Topic Expert
0 Likes
Thank you very much. Do you have an example for exposing the target in the service definition as associations start with "_" and this is not possible in service definition
junwu
SAP Champion
SAP Champion
0 Likes

https://sapui5.hana.ondemand.com/sdk/#/topic/d869d7ab3caa48b2a20dc20dfa248380.html

if your app is v4, the standard change document component can only be integrated as popup screen.