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?
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"; window.open (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?
Brgds,
Marcel
Add a comment