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

Popup window

Hello,

I'm trying to create a popup window with a button. Popup is coming, but without button. Can any one help?

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

String dialogText = "Validation Failed";

IWDConfirmationDialog dialog = wdComponentAPI.getWindowManager().createConfirmationWindow(

dialogText,

controllerInfo.findInEventHandlers("onActionok"),"ok");

dialog.open();

my event code is

public void onActionok(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )

{

//@@begin onActionok(ServerEvent)

wdComponentAPI.getMessageManager().reportSuccess("onActionOk");

//@@end

}

Thanks in Advance

Raj..

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jun 19, 2006 at 04:22 AM

    Hai ,

    Why do you want your confirmation Box ,without button,how can you close confirmation box without any action componenet, if you want this require ment, Please go throgh the External window.

    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/dialog boxes in web dynpro applications.pdf

    regards,

    Naga Raju

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 19, 2006 at 05:53 AM

    Hi Rajakumar

    You can use this:

    final IWDConfirmationDialog dialog = wdComponentAPI.getWindowManager().createConfirmationWindow
    	("Hello!",wdControllerAPI.getControllerInfo().findInEventHandlers("onActionok"),
    	"OK"); 
    	dialog.show();

    regards,

    oj

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 19, 2006 at 06:27 AM

    Hi Oj,

    I am also facing same issue(popup without any button).I worked with this code before, but it is not working for me.

    i am able to display the dialog box. but is giving the following error message.

    "Internet Explorer cannot open the Internet site 'http:my portal url' - Operation aborted" with OK button

    Please help me.

    Regards,

    Davood.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 19, 2006 at 06:27 AM

    Hi,

    Ur code will work fine for the dialog box with the button name ok.

    After clicking the ok button in the dialog box

    the report Sucess will also be execured.

    1)Check that the onActionOk is there in the methods tab.

    2)Then write ur code in any of the action(i.e.) Button.

    Do not write ur code in the init method.

    Regards,

    Vijayakhanna

    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.