cancel
Showing results for 
Search instead for 
Did you mean: 

Help button in WAD 7.X

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

chemicala_srimallikarjuna
Active Contributor
0 Kudos
Former Member
0 Kudos

Thanks !! But this is not what i need.

I only need to insert a button or link that opens a web adress in a new window... Really is it not possible in WAD ??

0 Kudos

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

Former Member
0 Kudos

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) ??

0 Kudos

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.

Former Member
0 Kudos

Nice.

And about the commands code properties of the template items, like the sapbi_page.m_mainTemplateName?

Do you now where i can find all this commands?

Infinite thanks again.

0 Kudos

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.

Answers (0)