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