Hi,
I have an issue in a javascript report : this report creates a Word document where attributes link of object are displayed.
The result is correct except when the link refers to a lotus notes document.
Example : the link 1 attribute is populated with :
"Notes://APARSSMA01/C12570DC0049FF14/F7DF62FD4CCA5B7EC12570A10051540E/ECEA93FA7FDCE845C12574EB0035F995"
In the word document, the link does not work : the link address generated is : #_Ref01.
Here is the code I use :
if(!p_sProcess.listeObjectives[iOcc].linkName.equals("")){ this.oOutput.OutputF(" ","TEXT_DOC_JUSTIFY"); this.oOutput.OutputLinkF(p_sProcess.listeObjectives[iOcc].linkName + "\n", p_sProcess.listeObjectives[iOcc].link,"TEXT_LINK");
where "p_sProcess.listeObjectives[iOcc].link" represents the string of the link address.
Do you have a solution to solve this issue ?
In advance thank you very much for your help,
Bruno.
Hi Bruno,
tested this issue and got the same result. I assume this result happens because the ARIS report help for that method says only the allowed link formats are allowed for that. I do not know why the method has this restriction:
p_sLinkTarget |
Description of link. If this parameter starts with "http:", "ftp:" or "mailto:", a corresponding hyperlink is created, otherwise a local (internal) link is created (see Constants.FMT_LINKTARGET). If this parameter starts with "file:///" a link to a corresponding file is created (e.g. file:///\\pcname\folder\file). |
I have no better solution for you :(
Best regards,
Jens