Links in PDF
One of the first things I noticed when I started working with InterActiveForms is the lack of a Link element (like LinkToAction in webDynpro).
Here’s suggestion of awork around:
1) Place a button element where the link is supposed to be
2) In the Border palet change the ‘Style’ property to ‘None’, that will make the the button with no collor in the backround.
3) In the ‘Font’ palet change the ‘Font collor’ to light blue (press the icon with the letter ‘A’ and choose your collor).
4) Again in the ‘Font’ pallet press the ‘underLine’ icon (a icon with a capital ‘U’).
Now the button looks like a link and in the ‘click’ event you can write any code for showing the destination of the link (e.g.: xfa.host.gotoURL(“http://www.url.com“)) .
Now lets go one step forwerd: A lot of times links need to have dynamic text…
For doing this in the layout:ready event of the link (button) write this code (with formCalc only):
$.caption.value.#text = “Any text” (usually it won’t be a string but a value from the dataSource).