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

BPS - A confirm pop-up

Hi all,

I am looking for a way to change the following pop-up code so that it calls a URL rather than a navigate function (set up in the web template builder for BPS web planning).

The popup currently will execute a navigate function upon clicking OK. I want it rather to execute a URL/hyperlink but I don't know how to change the code...

This is how it currently looks:

<script>

function SubmitWithPrompt(txtPrompt, txtStdButtonName) {

if( window.confirm( txtPrompt ) ) {

return( bspSubmit( txtStdButtonName ) );

}

}

</script>

<span><a href="#1" onclick="javascript:SubmitWithPrompt('You will lose unsaved data. If you have NOT saved your data, click CANCEL and save the data, otherwise click OK to continue.', 'Go_Home5'); return false;" class="sapBtnStd" OnMouseOver="javascript:window.status = 'Go Home'; return true;" title=""><nobr>Go Home</nobr></a></span>

The reason I want to do this is because on my web page I need to hide the navigate function so that the user is forced to click on the text element (which contains the pop-up code).

Problem is that navigate button cannot be hidden on a web page (or can they, guru's?), whereas the URL/hyperlink can be hidden by simply not putting in a description in the Text field.

Thanks in advance,

Rael

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Feb 08, 2005 at 12:50 AM

    Rael,

    you can hide any BPS element. Put a text element at the end of the page with the following HTML code:

    <SCRIPT LANGUAGE="JavaScript">

    document.all("Layout1").style.display = "none";

    </SCRIPT>

    Replace "Layout1" with the technical name of the BPS element.

    Regards,

    Marc

    SAP NetWeaver RIG, US BI

    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.