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

Confirm-Popup in SEM-BPS-Web-Planning-Views

Hi,

is there a possibility to throw a (javascript-)popup for confirming execution of a BPS-function in the web, like "Are you really sure deleting data? Yes / No"

Thanks for every hint!

Regards

Mathias

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Oct 26, 2004 at 08:47 PM

    Hi here it is,

    <a href="#" onClick=confirm('Are you really sure deleting data?')> Delete</a>

    Regards

    Raja

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 27, 2004 at 01:14 AM

    Hello Mathias,

    yes, of course. Here's an example. Set the original button for the planning function to "hidden". Then add a text component with type HTML and the following content (assuming the function button is call DeleteButton):

    <script>

    function SubmitWithPrompt(txtPrompt, txtStdButtonName) {

    if( window.confirm( txtPrompt ) ) {

    return( bspSubmit( txtStdButtonName ) );

    }

    }

    </script>

    <span><a href="#1" onclick="javascript:SubmitWithPrompt('Are you really sure deleting data?', 'DeleteButton'); return false;" class="sapBtnStd" OnMouseOver="javascript:window.status = 'Delete'; return true;" title=""><nobr>Delete</nobr></a></span>

    When you execute the web interface and click the butten, the system will prompt you first.

    Regards,

    Marc

    SAP NetWeaver RIG, US BI

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Marc,

      In the solution you have offered for calling a confirm-popup box, is there a way to execute a second function if the user chooses CANCEL?

      So if the popup promts for an OK or CANCEL, can you attach a function to the CANCEL option?

      Or, can you upon selecting OK, execute a 2nd function(i.e. first execute the delete, then immediately execute a save function)?

      Thanks,

      Rael

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.