Skip to Content
0

Smarttable - Annotation for navigation

Jan 18 at 02:28 PM

55

avatar image

Hi there,

I have writtten some annotations in ODATA (MPC - Define method) and use smarttable to render the table in UI5. I am not finding a way to annotate the navigation property.

I have two entity sets - Master and Detail.

There is a navigation property from master to detail in Odata.

So, I basically want to display the detail using this navgiation on selecting a line in the smarttable. I see that this can be implemented in CDS annotations, but due to some limitations, I need to use smartttable and achieve this.

The one method that's close to this is, SET_NAV_PROPERTY_PATH in interface /IWBEP/IF_MGW_VOCAN_SIMPLE_VAL.

Code:

lo_record->create_property( 'Target')->create_simple_value( )->set_nav_property_path( 'MastertoDetail' ).

We are at 7.5 ABAP and SAP_GWFND.

Can someone shed some light to achieve this or is it something that has to be approached differently?

Thanks,

Sathish R

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers