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

Pop up message

Hi ,

can any one help me in displaying pop up message , when user clicks on submit I have to dispaly pop up message "do you want to proceed"

Regards,

Venki/

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 30, 2008 at 11:36 AM

    Hi,

    Make use of Confirmation Messages

    API -> IWDConfirmationDialog

    Sample-> https://www.sdn.sap.com/irj/sdn/wiki?path=/display/wdjava/creatingConfirmationDialogBoxinWebDynproJava

    Regards

    Ayyapparaj

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 30, 2008 at 11:39 AM

    Hi,

    For this go for confirmation window

    1) create two action handlers (ok and cancel)under method tab and just copy the following code

    2)

    IWDControllerInfo cntrl_info = wdControllerAPI.getViewInfo().getViewController();

    IWDConfirmationDialog confirm = wdComponentAPI.getWindowManager().createConfirmationWindow("You are going to Exit, Want to Proceed?",cntrl_info.findInEventHandlers("cancel"),"Cancel");

    confirm.addChoice(cntrl_info.findInEventHandlers("ok"),"Confirm");

    confirm.setWindowSize(250,100); confirm.setWindowPosition(100,100);

    confirm.show();

    3) implement the functionality in ok method that you want to proceed.

    Regards

    Raghu

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 30, 2008 at 11:39 AM

    Hi,

    use the following code on submit button,

    IWDControllerInfo coninfo =wdControllerAPI.getViewInfo().getViewController();

    IWDConfirmationDialog dialog = wdComponentAPI.getWindowManager().createConfirmationWindow("do you want to proceed.",coninfo.findInEventHandlers("Ok"),"Ok");

    dialog.open();

    create one eventhandler with name "Ok" .

    Regards,

    ramesh

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 30, 2008 at 11:55 AM

    Hi,

    You can try out the following code in the view controller:

    String dialogText = "do you want to proceed ?";

    IWDEventHandlerInfo eventHandler = wdControllerAPI.getViewInfo().getViewController()

    .findInEventHandlers("OK");

    // Create the confirmation dialog, with an "ok" button

    IWDConfirmationDialog dialog =wdComponentAPI.getWindowManager()

    .createConfirmationWindow(dialogText,eventHandler,"OK");

    dialog.open();

    And then create a event handler method in view controller .

    Thanks

    Ritushree

    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.