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

Navigation between two annotations

JJ09
Explorer
576

Dear Community,

I have the following requirement:

In the list report I have to show a list of item-types (Geraetetyp-annotations.cds) and on the detail page I need to show a list of items being of the choosen item-type (Geraet-annotations.cds).

When I call my annotations via "cds watch" the look individually as I want them to look, but they are not conneced.

Geraetetyp-annotation.cds (item-type):

Geraet-annotation.cds (item):

My Question: What do I have to do, to only show items of the selected item-types in the object page? Can we filter that?

Thank you already,

Jasmin

Accepted Solutions (0)

Answers (2)

Answers (2)

maryana_naboka
Product and Topic Expert
Product and Topic Expert

Hello Jasmin,

it's hard to say without seeing your service. Please make sure your service have the associations between the two entities defined correctly, as e.g. between the Travel and Booking entities in this project schema:

https://github.com/SAP-samples/cap-sflight/blob/main/db/schema.cds

Best Regards,

Mariana

JJ09
Explorer

Hello Mariana,

thank you! The example has brought me a bit further.

With kind regards,

Jasmin