cancel
Showing results for 
Search instead for 
Did you mean: 

How to generate a Hyperlink to another Story within a custom Widget in SAC?

FxGk
Participant
0 Kudos

Hey, 

I tried to create a HTML link to another story within a custom widget. Unfortunatly that doesn't work. 
If you create a hyperlink in a text field within a story you can link both external websites and stories. 

I took the corresponding <a>...</a> HTML elements form my browsers inspector and used them in a custom widget.

Of course, the external URLs work as expected, but the links to stories are not so easy to copy.

Does anyone know how to create a hyperlink to a story or story page in a custom widget? 

Alternatively, it would also work if i could create a hyperlink within the SAC using a script. 

Unfortunately, so far I've only been able to find the option to add a hyperlink using the "three-dot menu". 

Best regards

Felix

Accepted Solutions (0)

Answers (1)

Answers (1)

Pascal_D
Advisor
Advisor
0 Kudos

Hi,

I don't know if I'm understanding your question correctly, but you can use the setHyperlink() function in SAC Scripting. 

For reference, look here: https://help.sap.com/doc/1639cb9ccaa54b2592224df577abe822/release/en-US/index.html#Shape_MsetHyperli... 

Hope this helps.

 

FxGk
Participant
0 Kudos
Hey Pascal thanks for the answer, but your solution only works for shapes. I would like to automatically generate text for example in a text field that then represents a link to another story. Best regards Felix