Webdynpro java   popup windows, extranalwindows ,diolag window

anybody  send  link for   popup windows, extranalwindows ,diolag window
        steps  to  create  popup window  in  webdynpro java.
Edited by: venkatpvr on Sep 23, 2011 2:06 PM

Hi Venkat,
Please look at
[Popup windows|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/20d2def3-f0ec-2a10-6b80-877a71eccb68] and [Creating Pop Up Window Using New Features in WDJ|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/2066c269-a17a-2c10-8fa7-f6a690c59288]
[Diolag Window:|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/903fed0d-7be4-2a10-cd96-9136707374e1]
Hope this helps!!
Regards
Vijay K
Edited by: VijaySAPEP on Sep 26, 2011 11:46 AM

Similar Messages

  • Webdynpro for java 怎么实现弹出一个popup window时,使原来的窗口变的不太明显?

    webdynpro for java 怎么实现弹出一个popup window时,使原来的窗口变的不明显,比如变模糊,或者消失都行。不知道怎么实现?

    创建一个modalWindow实例就可以了,如下:
    IWDWindowInfo windowInfo =(IWDWindowInfo)wdComponentAPI.getComponentInfo().findInWindows("HelloWindow");
    IWDWindow window = wdComponentAPI.getWindowManager().createModalWindow(windowInfo);
    window.setTitle("hello");
      window.show();

  • How to Save a file uploaded in WebDynpro Java to Windows server

    Hi Guys,
    I need to save a file uploaded in WebDynpro Java to a location on one of my companys many internal Window servers but I cannot get it to work.  I do not get any errors with the following code, but NOTHING happens...  And when I check the folder it is still emply...  Please advise.  I am particularly not sure about specifying the Path syntax.  Also, I do have permission to write to this server.  Is it even possible to save to a Windows server from WebDynpro??
    //uploaded document already in context...
    byte[] file = element.getFileResource();
                //    get the size of the uploaded file  
                element.setFileSize(this.getFileSize(file));
                wdContext.currentContextElement().setFSize(this.getFSize(file)); 
                //    get the extension of the uploaded file       
                element.setFileExtension(binaryType.getMimeType().getFileExtension());
                String fName = wdContext.currentContextElement().getFName();
                String fExt = wdContext.currentContextElement().getFileExtension();
                String foName1 = "
    server01.w9\Files\P
    HRP_Attachments\" + fName + ".pdf";
                File f1 = new File(foName1);
                DataOutputStream dos1;
                dos1 = new DataOutputStream(new FileOutputStream(f1));
                dos1.write(file);
                dos1.flush();
                dos1.close();
    Edited by: christiaanp on Sep 30, 2011 8:07 AM

    Hi Christiaan,
    When specifying the path, make sure you escape the slashes
    So, when you would normally use something like
    \\server\path\file.txt
    in your code you must use it in the form:
    String fileName = "\\\\server\\path\\file.txt";
    Hope this helps!
    Robin van het Hof

  • Java applet windows not opening in website

    User is running Windows 7 Pro 64-bit with IE10. She connects to a secure government website and logs into it. Once logged in, she clicks a link which opens a small popup IE window. A short time later, a couple of other small popup windows are supposed to
    open which are not IE windows but apparently java windows as the icon on the taskbar is the java icon and not the IE icon as for the main window and the first popup window. One of the java popup windows has links to click on to view various reports.
    This user was having no problem performing the above. Then her PC had Office 2013 installed and she says some other updates though she has no idea what (I know IE was not updated). Since then, the java popup windows do not open, only the first IE popup window
    opens.
    She can go to other Windows 7 Pro computers with IE10 and has no problem with the site and the popup windows. She can also use an XP system with IE8 and has no problem.
    I have disabled the popup blocker (though I was sure that wasn't the problem), installed JRE6u45 since she already had JRE7u45. I've tried to match her security and advanced settings to another PC. I've done a complete IE reset. None of these things have
    worked.
    I've never run into this type of problem before. I don't know if the problem is in IE or in Java or somewhere else. I'm really stumped on this one and I would appreciate suggestions as to where to look for the cause of this.
    Jonathan

    Hi Jonathan,
    You could try to deselect the “Automatically Detect Settings” to check how it works.
    And enable the scripting of Java applets settings:
    1. Click "Tools" --> "Internet Options" 
    2. Next, select the Security Tab, and select the "Custom Level" button
    3. Scroll down to "Scripting of Java applets"
    4. Make sure the "Enable" radio button is checked.
    5. Click OK to save your preference.
    Or you could try to change the settings in group editor (win + R --> Run --> gpedit.msc --> ok):
    Computer Configuration\Administrative Templates\Windows Components\Internet Explorer\Internet Control Panel\Security Page\Internet Zone\Java Permissions
    Please also try to reinstall Java.
    http://www.java.com/en/download/manual.jsp
    In addition, I would like to suggest you try to use compatibility mode (go to tools --> Compatibility View Settings) to check the issue.
    Meanwhile, I suggest you could reset the Internet Explorer to see if the issue persists.
    http://support.microsoft.com/kb/923737
    Please understand that reset Internet Explorer to its default configuration. This step will also disable any add-ons, plug-ins, or toolbars that are installed.
    If the issue still occurs, I suggest you use process monitor to identify what is working/not working/identify what is blocking the use of Java/Java applets.
    For your reference, you can download Process Monitor from the link below:
    http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx
    Hope it helps.
    Regards,
    Blair Deng
    Blair Deng
    TechNet Community Support

  • How to create popup Windows in WebDynpro

    I am learning WebDynpro and have developed a sample application where i ask the user to login. In case of incorrect login I want to display a popup window which shows an error message and has an ok button on it. On click of the OK button i want to close the Window.
    I have created a view for this popup... called errorView
    On click of login button i perform validations n incase the validatins fail i have put in the following code
    IWDWindowInfo myWinInfo = wdComponentAPI.getComponentInfo().findInWindows("Ra_ErrorView");
    myPopupWindow = wdComponentAPI.getWindowManager().createWindow(myWinInfo,true);
    myPopupWindow.setWindowPosition(300,150);
    myPopupWindow.open();     
    How should i proceed?
    Where should i write the myPopupWindow.close()
    Kindly give a step-by-step solution.

    Hi Reema,
    You want to close a window say window1 which you opened from a view.
    create an attribute. select its type from java native settings to IWDWindow
    wdContext.currentcontextElement().setWindowInstance(window);
    1.create an event in component controller say event1
    2.In order to trigger the event in component controller create a method in it
    write this code in implementation of controller to trigger the event
    wdThis.wdFireEventAddressSelectedEvent();
    3.For catching whatever event that is responsible for closing the window create an event handler in view1 say eventhandler1.Choose the subscibed event to be event1
    4.In that eventhandler1 write the code in implementation
    IWDWindow window =
    wdContext.currentcontextElement().getWindowInstance();
    window.close();
    Hope this helps you.Do revert back if you have more doubts
    Regards
    Rohit
    Message was edited by: Rohit Radhakrishnan

  • Java Applet Window showing on signed applet popups

    I have an applet deployed that is signed, but I'm experiencing a very annoying problem with JPopup windows that cross outside the border of the JFrame created by the Applet.
    Those pop-up windows still show the warning at the bottom "Java Applet Window". That part is pretty annoying and I don't understand why it's doing that since they are coming from a signed, trusted applet.
    Just to be clear, any of the JPopups or JDialogs or anything else we display inside the frame doesn't have this warning since we signed the applet.

    Our team is also using a signed applet and are having trouble with popup items not being accessible outside of the JFrame.
    In appletviewer the popup (JXDatePicker) is fully accessible. If running in Internet Explorer on Windows 2000 the portion of the popup outside of the JFrame paints correctly but cannot receive click events correctly.
    It would be preferrable that if the popup cannot receive events outside of the applet frame that the popup would be smart enough to pop itself fully in the applet frame.
    Any suggestions?
    Thank you.

  • "Java Applet Window" appears in my popup menu

    Hello
    I have added a popup menu to my applet but whenever the popup menu appears, I also get the text "Java Applet Window" at its bottom.
    What is causing this?
    Can I get rid of it?

    Yes you can add a local user policy or local system policy that grants an AWT permission that regards "Java Applet Window" more precisely permission java.awt.AWTPermission "showWindowWithoutWarningBanner";
    You can use a tool to add policy, create new policy files etc. Read about "policytool" in http://java.sun.com/j2se/1.4.1/docs/tooldocs/tools.html
    Probably, signing tha applet jar, you can obtain necessary permission without modifing local policy. But I'm not sure.
    Stefano.

  • Close Popup window in webdynpro abap.

    Hi,
    Can anyone tell me ...how to close the popup window through the action in webdynpro abap . In my popup window there is a button(i.e 'UPDATE') apart from that  default 'OK' button , I want that when 'UPDATE' button is pressed, along with the action window should be closed. I dont want to close the window by pressing 'OK' button at the botton
    I have used following code to open the popup window.
    data lo_window_manager type ref to if_wd_window_manager.
    data lo_api_component  type ref to if_wd_component.
    data lo_window         type ref to if_wd_window.
    lo_api_component  = wd_comp_controller->wd_get_api( ).
    lo_window_manager = lo_api_component->get_window_manager( ).
    lo_window         = lo_window_manager->create_window(
                       window_name            = 'POP_UP  WINDOW'
                       title                  = ''
                      close_in_any_case      = abap_true
                       message_display_mode   = if_wd_window=>co_msg_display_mode_selected
                     close_button           = abap_true
                       button_kind            = if_wd_window=>co_buttons_ok
                       message_type           = if_wd_window=>co_msg_type_none
                       default_button         = if_wd_window=>co_button_ok
    lo_window->open( ).

    Hi Dear,
    please try this code,
    DATA lv_wc TYPE REF TO IF_WD_WINDOW_CONTROLLER.
    data lv_view TYPE REF TO IF_WD_VIEW_CONTROLLER.
    data lo_window  type ref to if_wd_window.
    lv_view = wd_this->wd_get_api( ).
      lv_wc = lv_view->GET_EMBEDDING_WINDOW_CTLR( ).
       lo_window =  lv_wc ->GET_WINDOW( ).
       lo_window->CLOSE( ).
    Message was edited by: kumar.k kulanthaivel
    Regards,
    K. Karthikeyan

  • Remove Maximize button from popup window using Webdynpro ABAP

    Hi,
    Is there a way to remove the maximize button from a popup window using Webdynpro ABAP?
    Thanks,
    Jay

    Hi Jayanth,
    I think by setting is_resizable parameter pass abap_false. try this
    lo_window = lo_window_manager->create_window(
    window_name = 'POPUP'
    title = 'Window'
    close_in_any_case      = abap_true
    message_display_mode = if_wd_window=>co_msg_display_mode_selected
    message_type = if_wd_window=>co_msg_type_none
    is_resizable    = ABAP_FALSE ).
    Cheers,
    Kris.

  • How to disable in java script - a popup window

    the below code works for enabledisable of the text box , but now the text box is a popup window, how do i refer to that, please help' Doug
    function enableDisable(pValue)
    if (pValue == '/')
    document.getElementById("P4_END_ITEM_DESC").disabled = false;
    else
    document.getElementById("P4_END_ITEM_DESC").disabled = true;
    footer
    <script language="JavaScript">
    enableDisable(document.getElementById('P4_END_ITEM_DESC').value);
    </script>
    onBlur="javascript:enableDisable(this.value); "

    Hi,
    The popups are constructed differently from normal page items so are a bit more complicated to disable.
    Try something like:
    function disablePOPUP()
    var r = html_CascadeUpTill('P1_ITEMNAME', 'FIELDSET');
    var img = r.getElementsByTagName('IMG');
    var i = r.getElementsByTagName('INPUT');
    i[0].disabled = true;
    img[0].style.visibility = 'hidden';
    }Note that this disables the input field but hides the icon
    Andy

  • Popup window null pointer exception

    Hi,
    I have created a web dynpro application like this: a first window with a button that calls a popup with user info and telephone number and a button OK.
    When I click on OK, the popup window close perfectly, but if I click again on the button of the first page to see again the popup, I get a null pointer exception error:
    The initial exception that caused the request to fail, was:
       java.lang.NullPointerException
        at com.sap.tc.webdynpro.clientserver.window.ApplicationWindow.handle(ApplicationWindow.java:258)
        at com.sap.tc.webdynpro.clientserver.window.ApplicationWindow.handleWindowEvents(ApplicationWindow.java:239)
        at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:149)
        at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:321)
        at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:713)
    The popup code:
    IWDWindow myPopup = wdContext.currentPopupNodeElement().getPopupAttribute();
    if (myPopup == null)
         IWDWindowInfo windowInfo = wdComponentAPI.getComponentInfo().findInWindows("PopWin");
         myPopup = wdComponentAPI.getWindowManager().createModalWindow(windowInfo);
         myPopup.setWindowPosition(200, 200);
         wdContext.currentPopupNodeElement().setPopupAttribute(myPopup);
         wdContext.currentPopupNodeElement().setUserName("thibault");
         wdContext.currentPopupNodeElement().setUserTelNumber("01010101");
    myPopup.show();
    The close function for the popup:
    IWDWindow window = wdContext.currentPopupNodeElement().getPopupAttribute();
    window.hide();
    window.destroyInstance();
    Has any one got any solution, I would really appreciate your help.
    Thibault Schalck

    Hi,
       Try changing your code like this under popup.
            IWDWindowInfo windowInfo = wdComponentAPI.getComponentInfo().findInWindows("PopWin");
         IWDWindow myPopup = wdComponentAPI.getWindowManager().createModalWindow(windowInfo);
    wdContext.currentPopupNodeElement().setPopupAttribute(myPopup);
         myPopup.setWindowPosition(200, 200);
         wdContext.currentPopupNodeElement().setPopupAttribute(myPopup);
         wdContext.currentPopupNodeElement().setUserName("thibault");
         wdContext.currentPopupNodeElement().setUserTelNumber("01010101");
    myPopup.show();
    Kiran

  • Popup Window Runtime Exception

    Hi,
    I am working on EP7 SP 15.
    I am trying to create a popup window but I have the following error:
    The initial exception that caused the request to fail, was:
       com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Parameter windowInfo must not be null.
        at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.createModalWindow(ClientComponent.java:1028)
        at popapp.PopAppView.onActionCreatePopup(PopAppView.java:150)
        at popapp.wdp.InternalPopAppView.wdInvokeEventHandler(InternalPopAppView.java:148)
        at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)
        at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:67)
    The source code of my methods is:
    IWDWindow myPopup = wdContext.currentPopupNodeElement().getPopupAttribute();
         if (myPopup == null)
              IWDWindowInfo windowInfo = wdComponentAPI.getComponentInfo().findInWindows("PopWinView");
              myPopup = wdComponentAPI.getWindowManager().createModalWindow(windowInfo);
              wdContext.currentPopupNodeElement().setPopupAttribute(myPopup);
         myPopup.show();
    Can anyone tell me what is wrong in my source code ?
    Thanks q lot for your help....

    hi,
    this is due to two reasons
    1. u have not created this window .
    IWDWindowInfo windowInfo = wdComponentAPI.getComponentInfo().findInWindows("PopWinView");
    so create this first.
    and 2. the name of window is not spelled correctly.
    Regards
    Trilochan

  • How to get the values from popup window to mainwindow

    HI all,
       I want to get the details from popup window.
          i have three input fields and one search button in my main window. when i click search button it should display popup window.whenever i click on selected row of the popup window table ,values should be visible in my main window input fields.(normal tables)
       now i am able to display popup window with values.How to get the values from popup window now.
       I can anybody explain me clearly.
    Thanks&Regards
    kranthi

    Hi Kranthi,
    Every webdynpro component has a global controller called the component controller which is visible to all other controllers within the component.So whenever you want to share some data in between 2 different views you can just make it a point to use the component controller's context for the same. For your requirement (within your popups view context) you will have have to copy the component controllers context to your view. You then will have to (programmatically) fill this context with your desired data in this popup view. You can then be able to read this context from whichever view you want. I hope that this would have made it clear for you. Am also giving you an [example|http://****************/Tutorials/WebDynproABAP/Modalbox/page1.htm] which you can go through which would give you a perfect understanding of all this. In this example the user has an input field in the main view. The user enters a customer number & presses on a pushbutton. The corresponding sales orders are then displayed in a popup window for the user. The user can then select any sales order & press on a button in the popup. These values would then get copied to the table in the main view.
    Regards,
    Uday

  • How to disable parent window while popup window is coming

    Hi,
    I am working on Oracle Applications 11i.
    I am able to get the popup window using the Java script in the controller.
    Please see the below code for the reference.
    String pubOrderId = pageContext.getParameter("orderId");
    StringBuffer l_buffer = new StringBuffer();
    StringBuffer l_buffer1 = new StringBuffer();
    l_buffer.append("javascript:mywin = openWindow(top, '");
    l_buffer1.append("/jct/oracle/apps/xxpwc/entry/webui/AddAttachmentPG");
    l_buffer1.append("&retainAM=Y");
    l_buffer1.append("&pubOrderId="+pubOrderId);
    String url = "/OA_HTML/OA.jsp?page="+l_buffer1.toString();
    OAUrl popupUrl = new OAUrl(url, OAWebBeanConstants.ADD_BREAD_CRUMB_SAVE );
    String strUrl = popupUrl.createURL(pageContext);
    l_buffer.append(strUrl.toString());
    l_buffer.append("', 'lovWindow', {width:750, height:550},false,'dialog',null);");
    pageContext.putJavaScriptFunction("SomeName",l_buffer.toString());
    But here the problem is, even though popup window is there, i am able to do the actions on the parent page.
    So how to disable the parent page, while getting the popup window.
    Thanks in advance.
    Thanks
    Naga

    Hi,
    You can use javaScript for disabling parent window as well.
    Refer below link for the same:
    http://www.codeproject.com/Questions/393481/Parent-window-not-disabling-when-pop-up-appears-vi
    --Sushant                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How to pass field value from popup window to oninput processing of other pg

    Hi,
    I want to pass a field value from the popup window to oninput processing of main page ( from where popup window is triggered). and need to close the popup window. How to do it ?
    In the popup window's oninputprocessing, im doing some validation checks. If it passes all the validations, then only the control shd come to main page ..else it should stay in popup window only .
    Regards,
    Jothi.

    Hi Jothi,
    you can use java script to pass the value and close your popup window. use the following code.
    in your popup window:
    function passData(h1)
             window.opener.document.getElementById('var1').value = h1 ;
             window.close();
    then call this function when you finish your validations.
    in your main page layout create an input field with id as passed in the function above "var1".
    In the value attribute give it your variable as follow:
    <htmlb:inputField id      = "var1"
                              value   = "<%= var2 %>"
                              visible = "false" />
    "var2" will be assigned the value from your popup window.
    I hope this will help you..
    Regards,
    Husain

Maybe you are looking for

  • How to raise the exception in function module

    Dear abaper's.                I am creating a Function module .In that in' EXCEPTION' Tab i am giving 3 exception .1.NO_DATA_FOUND 2.NO_PRINTER_FOUND 3.SMARTFORM_INTERFACE_NOT_FOUND. In my coding if this condtion matches i want to raise this exceptio

  • Adobe forms with ABAP AS

    Hi guys i need to know is it possible to work with adobe froms while i'm using only ABAP AS without JAVA AS, in other words will it be possible to install the ADS on an ABAP AS ? Regards

  • Clear Javascript cache

    Hi Experts, I´m trying to do some changes in javascript code of the content area PAR project, but changes take at least one day to take effect. As you can imagine, it is delaying the development. anyone know how I can refresh the cache? thanks in adv

  • Yosemite has made my MacBook unbearably slow

    Hi there, Like other Mac users I have found my MacBook Pro has become so slow it is virtually unusable since installing Yosemite.  I installed it several days ago and the problem has not resolved.  I have run EtreCheck in the hope that someone might

  • MOVED: A check on my settings to get the best out of them.

    This topic has been moved to Overclockers & Modding Corner. https://forum-en.msi.com/index.php?topic=143380.0