Skip to Content
0

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

Nov 28, 2017 at 02:51 PM

230

avatar image
Former Member

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!

1.png (76.6 kB)
2.png (24.1 kB)
3.png (13.3 kB)
5.png (27.4 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Jocelyn Dart
Dec 01, 2017 at 08:46 AM
0

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

Show 1 Share
10 |10000 characters needed characters left characters exceeded
Former Member

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.

0
avatar image
Former Member Feb 02 at 06:22 AM
0

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

Share
10 |10000 characters needed characters left characters exceeded
Chris Xu
yesterday
0

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

Share
10 |10000 characters needed characters left characters exceeded