Skip to Content
author's profile photo Former Member
Former Member

URL/Hyperlink in a BEx Web Template

I'm looking for a possibility to open URL/Hyperlink which would open a popup window, by pressing a button on a web template. The problem is that button from web items only support executing Web API (there is no possibility to open URL from there) or executing a java script.

Is there any simpler way? Just using "hyperlink" is not good because it's not possible to put it just next to other buttons in a web template (and it's not customizable enough either - even change font size seems to be not possible).

If this is doable only though java script, could anyone please give a simple example of java script code which opens URL in a new window?

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 14, 2010 at 02:47 PM

    Hi Gleb,

    in case you are using BI 7.0 this is not supported using standard features. However you can try using a simple coding such as this one:

    function executeURL( currentState, defaultCommandSequence ){
     var templName = sapbi_page.m_mainTemplateName; 
     var baseDir = "http://...../";
     var docuFile = baseDir + templName + ".htm"; (docuFile);

    Implement a buttongroup-item and a scriptItem containing the am coding. Link the "executeURL" to your button (by using SCRIPT_FUNCTION).

    Does this work for you?



    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.