Skip to Content
Author's profile photo Former Member

Confirm popup

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

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

    String dialogText = “Are you sure?”;

    IWDConfirmationDialog dialog = wdComponentAPI.getWindowManager().

        createConfirmationWindow(dialogText,wdThis.WD_EVENTHANDLER_CONFIRM_YES, “Delete”);

    dialog.addChoice(info.findInEventHandlers(“confirmNo”), “Cancel”);

    dialog.setOnClose(wdThis.WD_EVENTHANDLER_CONFIRM_NO, true);

    dialog.setWindowSize(300, 50);

    dialog.setTitle(“Delete”);

    dialog.show();

}

Assigned Tags

      Be the first to leave a comment
      You must be Logged on to comment or reply to a post.