on 04-01-2009 5:52 PM
Hi all, i'm creating standard Web templates in 7.X version of WAD and i'm unable to insert a button that call a web adress to go to a help page.
In 3.5 Version it was very easy, doing it by code... The only thing I have seen in the new version is to insert an hyperlink (Toolbar --> Insert --> Hyperlink) but this only create a text chain that appears in the layout and guides you to a web adress but the web adress is displayed in the same window and after that you are unable to go back to your report (furthermore the appearance of this hyperlink is poor).
So, do anyone know hoy to create a button that guides you to a web adress ??
Maybe linking a java script with a button link? But i have no idea about what code I need to obtain this...
Infinite thanks.
Edited by: AndresH_Garcia on Apr 1, 2009 6:53 PM
Hi,
Pls chk this;
http://www.javascript-coder.com/javascript-form/javascript-email-form.phtml
Regards
CSM Reddy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
we have done something like this to open a documentation for the WebReport (the documentation has the same name as the template).
Just insert a ButtonGroup-Item and a ScriptItem.
function executeDocumentation( currentState, defaultCommandSequence ){
var templName = sapbi_page.m_mainTemplateName;
var baseDir = "http://....directory of documents.../";
var docuFile = baseDir + templName + ".htm";
window.open (docuFile);
}
Link the function ExecuteDocumentation to your Button.
Regards,
Thomas
Amazing man !!
That's exactly what i need and I have proved right now and it works fine. I have not used var templName and docufile because are not necesary for my purpose.
Infinite thanks Thomas.
I have other question for you, do you know any place where i can find all java script functions like the one you have passed me (window.open) ??
Hi,
for a quick overview, try the JavaScript/DOM object reference at http://de.selfhtml.org/ (german).
Maybe this link is helpfull: http://oopweb.com/JavaScript/Documents/jsintro/VolumeFrames.html.
Regards,
Thomas.
Well, the commands are not well documented- at least i didn't find a proper documentation. Maybe this will help you: Create a blank Webtemplate, insert a Scriptitem, edit the script with the wizard an take a look at the generated Code.
The GetMainTemplateName-function is described here:
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/43/ef9a6c13f2025be10000000a1553f7/content.htm
Best regards,
Thomas.
User | Count |
---|---|
87 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.