cancel
Showing results for 
Search instead for 
Did you mean: 

Annotation UI.SelectionFields not working

Vijay
Active Contributor
0 Kudos

Hi,

I am trying to add filter in List report app using UI.SelectionFields annotations via code in MPC_EXT -> define method.

    lo_annotation = lo_ann_target->create_annotation( iv_term = 'UI.SelectionFields' ).
    lo_collection = lo_annotation->create_collection( ).
    lo_simp_value = lo_collection->create_simple_value( ).
    lo_simp_value->set_path('Customer').

I can see the same in service metadata and also visible in WebIde under external annotations in Annotation modeler. But the filter field is not visible on the apps initial screen. I have made the fields ds as filterable in the Entity property as well.

But when I add the same annotation using Annotation modeler as local annotations , it is working fine.

I don't see any difference in annotations added via code or modeler. Please help to figure out what do I miss here.

Thanks

Vijay

View Entire Topic
prajnaparmita
Advisor
Advisor
0 Kudos

Hello Vijay,

Please see this blog Adding annotation in oData . I hope you can get some help from this blog.

Best Regards

Prajna

Vijay
Active Contributor
0 Kudos

Thanks prajnaparmita for the response.

I have followed this blog only to try out the code based annotations. I am able to add annotations , but facing issue with UI Selection fields annotation.

Regards

Vijay