Tuesday, May 22, 2012

Create Runtime PopUp - (WebDynpro Java)



try
{

IWDControllerInfo controllerInfo = wdControllerAPI.getViewInfo().getViewController();
    
String dialogText = "Are you sure you want to delete?";

IWDConfirmationDialog dialog = wdComponentAPI.getWindowManager().createConfirmationWindow(dialogText, controllerInfo.findInEventHandlers("DeleteYes"),"Yes");
dialog.addChoice(controllerInfo.findInEventHandlers("DeleteNo"),"No");
dialog.show();     

}
catch(Exception e)
{
wdComponentAPI.getMessageManager.reportException("Exception Caught:"+e,false);
}


Create two Event Handlers -->Goto Methods and create.
  1. DeleteYes
  2. DeleteNo


Write codes in that DeleteYes--> Delete Records.
                             DeleteNo --> nothing/print info as deleted.

5 comments:

  1. Hello, sir i would like to ask that what is the scope of SAP webdynpro ABAP training what all topics
    should be covered and has anyone studies from this course
    http://www.wiziq.com/course/8153-sap-web-dynpro-pro-abap-training of SAP webdynpro ABAP training ??
    or tell me any other guidance…
    would really appreciate help… and Also i would like to thank for all the information you are
    providing on SAP Webdynpro ABAP training.

    ReplyDelete
  2. Hi Sukaniya, First of all I want to say as the blog name itself suggets this blog is for SAP EP not webdynpro ABAP. I work in SAP EP Module. So, dont have much knowledge about what you are asking :) Post it somewhere else. May be in SCN community. You will get a satisfactory reply.

    ReplyDelete
  3. hey sukaniya ,
    nice piece of information provided i had many doubts in mind that weather i should go for online learning or not so putting my mind together i went for a online course http://www.wiziq.com/course/8153-sap-web-dynpro-pro-abap-training
    which was a very good experience and learned a lot so know i have decided to learn online only.

    ReplyDelete
  4. Hello Webmaster. I truly just like your article and the web site all in all! The piece of writing is actually very plainly written and without difficulty understandable. Your current Blog style is amazing as well! Would definitely be awesome to learn exactly where I can get that. If possible maintain up the excellent job. We all need much more these website owners such as you on the web and also much less spammers. Fantastic man!

    SAP EP ONLINE TRAINING

    ReplyDelete
  5. I feel it is right place to get info on SAP ABAP. This was
    really something, I had been looking for days. Too excited to view your other blogs on ABAP.

    SAP's applications are written (the other language is Java). It began life
    as a pure procedural language and over the years has added object-oriented features that will be familiar to any Java programmer. ABAP programs are run on SAP's Netweaver ABAP application server, which is the only publicly available ABAP runtime environment.

    SAP ABAP ONLINE TRAINING

    ReplyDelete