Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Hyperlinks and custom URIs

In the app I'm currently developing there will be a feature that allows a user viewing a report to click on a hyperlink and this will open a relevant window in the parent application. I'm using the java applet ReportViewerBean in a thick client java app and have added a HyperlinkListener.

I can catch links when they start with common things like: http:// and ftp://, but I would like to use a custom URI start such as foo:// so that I can catch this link and do what I like with it while pdf viewers opening an exported version of the report won't know what to do with the link. I basically want to prevent a pdf viewer from launching an internet browser or other application because the link starts with http://.

I can enter whatever URI I like in CR Developer (I'm using BOXI R2) and the link seems clickable there, it just gives me an error saying Windows has disallowed access to the file (must default to trying to link to a file)

Is there a way I can use a custom URI and have the ReportViewerBean able to catch it?

Cheers,

Elliot.

Former Member
Not what you were looking for? View more on this topic or Ask a question