Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Create a hyperlink to open a URL. For example:

$bookmark.openURL("http://www.nomagicasia.com","NoMagic Asia")
 NameType Description 
Parameter(s)  url java.lang.String  A URL text.
content java.lang.Object The text
content. 
 Return -com.nomagic.magicreport.LinkThe text content
with a hyperlink
in the RTF format. 


Code Block
languagetext
$bookmark.openURL("http://www.nomagicasia.com","NoMagic Asia")


$bookmark.openURL(url, content)

Create a hyperlink to open a URL. For example:

...

 Name Type Description 
Parameter(s)  url java.net.URL A URL
instance. 
content java.lang.Object  The text
content. 
 Return -com.nomagic.magicreport.Link 

The text content
with a hyperlink
in the RTF format.


Code Block
languagetext
$bookmark.openURL($url, "NoMagic Asia")


$bookmark.openURL(uri, content)

Create a hyperlink to open a URI. For example:

...

  NameType Description 
Parameter(s)  uri  java.net.URI A URI
instance. 
content java.lang.ObjectThe text
content.
 Returncom.nomagic.magicreport.LinkThe content with
a hyperlink in the
RTF format.


Code Block
languagetext
$bookmark.openURL($uri, "NoMagic Asia")


$bookmark.open(content)

Create a hyperlink for a bookmark. The bookmark ID will be automatically generated from the content.

...