cancel
Showing results for 
Search instead for 
Did you mean: 

How to render a field as smart link on List Report & Object Page

Former Member
0 Kudos

Hi Experts,

I am trying to render a field as smart link on my Object page which is entered from the List Report, but it doesn't work. Could someone help me?

Below is my List Report :

When I click any line in this report, it will navigate to an object page like below:

Now, what I want is to render the fields VBELN and ERNAM as smart links, so I created below annotations in my local annotation file (referred from here )

I am sure the Service and Entity Type described in the Target of annotation is correct, but it always not work.

Does some one know why? Do I need to code or configure anywhere else?

Thanks!

Accepted Solutions (0)

Answers (4)

Answers (4)

Jocelyn_Dart
Product and Topic Expert
Product and Topic Expert

Hi Jessie,

Ok what's happening is when you display a field in a standard Plain Text facet it can only be displayed as text. So it ignores your annotations. So your snippet is not enough. You need to look at the WHOLE snippet shown in Configuring External Navigation to understand how to create a Quick View Facet. You can then use Collection Facet to group the Plain Text and Quick View facets together.

Good luck! It would be great if you can blog on this once you get it working

Rgds

Jocelyn

Former Member
0 Kudos

Hi Jocelyn, thanks for you advice. I tried many times but always failed . I guess it may be caused by other reasons instead of the code.

Former Member
0 Kudos

Hi Jocelyn,

I've followed every single one tof he steps too. but the target field does not change to a hyper link at all.

I'm not sure if I put the code snippet into the wrong files.

1. I put the SemanticObject annotation into annotations.xml file.

2. I put the QuickViewFacets annotations into the localService/metadata.xml file, but i doubt this wouldn't work because in my understanding localService/metadata.xml won't affect the render of the UI components. will it?

In the original document , it says "Annotate UI.QuickViewFacets under the association end type of the Dependent property as follows".

does that mean put the QuickViewFacets annotations under the <Dependent Role="FromRole_assoc_0D9ADB4FFAD18552107BA50F5E694E5C"> tag in the localService/metadata.xml file?

3. I put the UI.FilterFacets annotations into the same xml file as #2. but for the same reason, i don't think it would work, would it?

please help clarify. thanks a lot!

Nigel,

Jocelyn_Dart
Product and Topic Expert
Product and Topic Expert
0 Kudos

Correct you need to use a valid Semantic Object .

Semantic Objects are held in configuration tables /UI2/SEMOBJ and /UI2/SEMOBJ_SAP

They are typically an English term not an abbreviation. E.g. PurchaseOrder, SalesOrder, etc.

ChrisXu
Advisor
Advisor
0 Kudos

Hi,

The cause is the wrong value of attribute 'String' of tag 'Annotation-Term'.

It should be the semantic object name instead of the property name.

Best regards,
Chris Xu

VP
Explorer
0 Kudos

Hell I’m trying to implement similar scenario but the end result is the same as jessie.

I follow all the steps as Jocelyn indicated but no luck.

What I notice is the property is buold as SmartLink and through inspector I validate it and tryed via debug tool to enable it and the text become hiperlink. However when clicking I got error message where the system is not able to find valid target.

For sure is missing some annotation that allow proper construction of SL control.

Have you sorted out or still stuck?

Thank you

Valentino