cancel
Showing results for 
Search instead for 
Did you mean: 

How to use multiple entities in Annotation.xml for Analytical List Page application ?

boudhayan-dev
Employee
Employee
0 Kudos

Hi,

I have a Analytical List Page application. The OData service that I am using is providing many entities in its service doc. Currently, in the annotation modeler, I have created a table by selecting one entity as a target. Now, I want to add a searchfield annotation, but this search field annotation will reference a different entity. The annotation modeler allows it but I do not see any change in the List Page.

Here are the following steps I used -

1. A snapshot of the metadata being used as a data source. As you can see there are 2 entities. Infact there are more, but I chose to show just one.

2. Now, when I reference a single entity in the annotation file, I get the correct info in ALP. Here I am using AtRiskCustomerType entity and displaying few of it's property as columns.

The resulting ALP-

2. Now If i want to include a search field. But this search field should reference from a different entity. So I have included it in the annotation file as follows. But it does not show up in ALP. What could be the reason ?

Regards.

Accepted Solutions (0)

Answers (2)

Answers (2)

maryana_naboka
Active Participant
0 Kudos

Hi,

I've just seen your question. As I understood you want to add a filter bar to the object page of your app and this filter bar should contain a filter field from the different entity type, right?

If so, you just need to add the UI.SelectionField annotation to your main entity type (AtRiskCustomersType), add an Item to it like you did, and in this item reference the property from the different entity type.

For this, you use the Navigation field in the Value column to navigate to this entity type (TopEvents) and then select the property in the second field of the value column:

The pre-requisite for this is to have the respective navigation property in your metadata.

Hope this helps.

Mariana

Joseph_BERTHE
Active Contributor
0 Kudos

Hi,

Did you select the other entities vie the button Slect Target ?

Regards,

Joseph

boudhayan-dev
Employee
Employee
0 Kudos

Yes I did .