How to create a modal window....?

Hi All,
                  i have created a  WDA ALV Report,and for one of the field i assigned a cell editor 'Button"
Whenever i click on that button( which was in the ALV grid) i need to display some other data in the modal window...
1.How can we create a modal window...& where exactly i need to write the code ?
Please help me to sort out this...
Regards,
Ravi

Hi Ravi,
1) Go to the methods tab of the view containing your ALV & create an event handler method for event ON_CLICK of ALV. This method would be called by the system whenever you click the button within your ALV cells.
2) For this create a new view say POPUP_VIEW & a new window say POPUP_WINDOW.
3) Now embed your POPUP_VIEW within your POPUP_WINDOW.
4) Now within the view which displays your ALV, go to the event handler method for ON_CLICK & call the popup window.
This can be done by making use of the code wizard. Just start the wizard and select the "Generate Popup" radio button. When you do an F4 help within your component use you would now be able to see an entry with the name of your new window that you have created i.e, POPUP_WINDOW. Just select that entry and press on enter. That's it you have done the needful for achieving your desired functionality.
Regards,
Uday
Am just pasting you the code from my event handler mthod for ON_CLICK event:
METHOD call_popup .
  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            = 'POPUP_WINDOW'
                     message_display_mode   = if_wd_window=>co_msg_display_mode_selected
                     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( ).
ENDMETHOD.

Similar Messages

  • How to create a popup window to load HTML page in AIR application without using any mx or spark?

    How to create a popup window to load HTML page in AIR application without using any mx or spark components?
    I need to load the HTML page in popup in AIR application without using any of the <mx> or <spark> components. I need to open in the application itself not in the browser.(If we use navigateToURL() it will open in th browser)

    Can we achieve this? can somebody help me on this scenario..

  • How to create a popup window that shows detail information when press submi

    hi,all
    how to create a popup window that shows detail information when press the submit button ?I mean,when I press the button "Sumit"there will appear a popup window that shows the detail information you typed before.it means are u sure to submit,it is like some confirmation window.
    how to do achieve this ?help plz .
    best regards
    hlee
    Edited by: hlee on 2011-4-15 上午1:26

    hey,vee
    thanks for your response,but i had already read this thread before i put up a new question.any way,thanks.
    best regards
    hlee

  • How to create a second Window ?

    Hello,
    I need to create a second Window, but I can't find anything on how to create this, I only find things like "How to create an empty Window" or "How to create a HTML Window" (here: http://help.adobe.com/en_US/AIR/1.5/devappsflex/WS5b3ccc516d4fbf351e63e3d118666ade46-7e0a. html ), but I need to create Window with Flex components inside (Like the main Window),
    The window that I need to create is just here to get a user input (an Uri) and return it to a method on the main window.
    Any idea of how can I do that ?
    Thank you !

    Use the Flex Window class (which is described in the "Creating an  mx:Window" section in the documentation you cited). You can then add Flex components to it.

  • How to create a new window ?(not popup windows)

    How to create a standard window to show my web dynpro window so that the print button can be used ?

    hi , you are right , the blog tell me how to create a popup window , but I wanna to create a new window so that I can use the functions provided by the browser , what shall I do ?
    Regards ,

  • How to create pop-up window to search for items

    Hi,
    I want to create a pop-up window were the user will be able to search for an item and select it.
    How can I use a pop-up window in a portlet? Is there any api in the pdk for creating pop-up windows?
    Thanks

    Hi,
    Can you let me know why you are trying to use a popup window for searching?
    You can always add a search portlet - Basic,Advanced,Custom
    - which will give you the link to the respective searched items.
    I couldn't get a clear idea of your requirement.
    Thanks.

  • How to create tablespaces in Windows

    using Oracle 10g XE on Windows
    how do I create tablespaces on Windows?

    Hello,
    YOu can login as system or sys usign sqlplus and run following offcourse modify with ts name and location
    create tablespace my_new_ts datafile 'C:/my_path_to_data_file/my_new_ts_dat01.dbf' size 300M autoextend on next 100M maxsize 8192M;regards

  • How oui creates key in windows registry?

    Hi all,
    I have a question about Oracle 11g Client(32bit) installation.
    My question is how oracle universal installer create key in windows registry (Windows Server 2008 R2)? Is that info written in some parameter files? How oui decide witch path to get for creating registry key, I think default is HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\ORACLE\KEY_OraClient11g_home1?
    Thanks

    Hi;
    AFAIK; During installation those steps seeded in installation file. AFAIK it defaults put Oracle keys under: HKEY_LOCAL_MACHINE\Software\Oracle and HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services
    Regard
    Helios

  • How to create a status window of Essbase scripts?

    Hello,
    I'm hoping someone can give me some insights on how to approach this requirement. I'm a Java Developer and am not really familiar with Essbase technology.
    The requirement is to create a status window of all running and queued calculations in Essbase. Users need to be able to start scripts as well and see its status.
    Like I mentioned, I'm a Java programmer and I think the direction is to create a java-application to do this. Is there any information/example how this could be done.
    Also, is there any technology that can be used to do this? Any plug-ins? I know that we use Excel as front-end for Essbase.
    Any help would be appreciated.
    Thank you,

    Hello -
    You may want to check with your essbase admin to show you the hyperion EAS/AAS interface and its functionalities to see if some of them may/could get covered there itself as per your requirement.
    Also, check the docs on the EAS/AAS here-
    Go to link - http://www.oracle.com/technology/documentation/epm.html
    Choose the View Library of the version that you are using.
    Click on the Essbase tab
    Choose/read the docs under - Oracle Essbase Administration Services
    Regards

  • How to create a dialog window with no button that opens along with the main window?

    When the main window is open, the dialog window opens up immediately and can be closed by key press. At other times, when the next step, ie: decision, comes to, the another dialog window pops up again and is again closed by key press. Does anyone know how to do? Use the sub-Vi? notification method? occurrence method?
    And another thing: how to create a reusable dialog window with no button so that different messages can be sent to it and it can closed by key press. And how to pass the string to the title of the dialog window programmatically?

    For your functionality (If I understand it right), nothing needs to be in the event structure. Pressing any key just triggers the event, thus finishing the VI (there is no while loop).
    Could you tell me what you mean my "it won't run properly"? Make sure that the front panel of the subVI is closed before starting the main VI. Remember that the subVI is set to "open when called" and "close afterwards if originally closed". So, if you had the panel open already, it won't of course close when finished!
    (Actually, the problems is worse when you have the subVI panel open when starting the main VI. you get a catch22 and labVIEW locks up because (1) the subVI is set to dialog and grabs all attention but (2) it has not been
    called, thus the event cannot be triggered. So don't do that!!!! As a quick workaround, add the modification shown in the attached image to ensure the panel of the subVI is closed.)
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    CloseNoButtonDialog.gif ‏3 KB

  • How to create service in Windows XP for jar file?

    Dear friends,
    I'm having an jar file in my Windows XP OS. I would like to create new service Windows XP to run this jar file. When i start the service then the jar file to be executed.
    I did search in google but i didn't get any proper solution for this.
    Could anyone please tell me the best and easiest way to create service for my jar in Windows XP os.
    Thanks in advance,
    Sathish

    Hi Chennail123,
    Just have a read : [*Converting Your Java App into a Windows Service*|http://www.devx.com/Java/Article/34438].

  • How to show refreshed modal window(2nd report region window) - reposting

    Hi,
    I have a requirement where i scroll thru different rows in grid region.
    Moment I tab out from first row, I pop up 2nd report, where I show related detailed data lines for the tabed out line of first grid.
    So my 2nd window is a report region query, whose 'where' clause contains the primary key from the row of first grid window.
    On tab out of a row of first window, I have a javascript function, which shows 2nd report region using:
    var mywindow =
    window.showModalDialog
    ('http://MY-URL-/ebus/apexQA111/f?p=&APP_ID.:25:&SESSION.',myObject,'dialogWidth=800px;dialogHeight=300px;dialogLeft:50;dialogTop:50');
    Problem:
    On First tab out, I get the correct data display on 2nd window, which is related to current tabbed out row.
    However, If I tab out from next record, modal window pops up and it still shows my detailed data of first tabbed out row.
    Somehow the 2nd window is not getting refreshed/recalculated based on my new tabbed out row. I only have showmodaldialog in my JS function.
    Anyway to refresh the window based on new values of the where clause variable? and then showing the window?
    Please help!!
    Regards,
    Ravi.
    Edited by: Rave on Nov 26, 2009 6:15 AM

    Hi Rave,
    You can refresh any window with the java script below, just make it conditional on the value of an item within your page so that it dose not run every time the page is loaded.
    if ($v('P1_MY_ITEM') === 'foo' ) {
    window.location.href = document.location.href;
    }

  • How to create a popup window that allows creation - - -

    Hi,
    I have a column named owner_id(number) .
    My requirement is to display the owner name and in the future I want to allow creation of a new owner from this page, .So i have used an
    [ Popup Key LOV (Displays description, returns key value)] for the time being which displays name(Description in other table)
    I need to create a popup window that allows creation of the owner and writes the entity_id(owner_id) back to this page.
    Can anyone plz help with the solution

    hey,vee
    thanks for your response,but i had already read this thread before i put up a new question.any way,thanks.
    best regards
    hlee

  • How to create a Child Window without closing the parent Window

    Hi All,
    I have a requirement to create a child window without closing the parent window. I have to click an item in the parent window, then one child window should get open. The parent window should not be closed before closing the child window.
    Kindly help me in this.
    Thanks and Regards,
    Myvizhi

    Hi All,
    I found the solution for this. I have created a new page. Then i created an item as link item style in the parent page and i have set the following properties in the Link item:
    Destination URI : OA.jsp?page=/seagate/oracle/apps/seasoa/que/webui/SeaSoaHeaderDetailPG&headerId={@ErrHeaderId}&retainAM=Y&addBreadCrumb=Y&backPage=S
    Target Frame     : _blank
    This is opening the new child window without closing the parent window.
    Thanks and Regards,
    Myvizhi

  • How to create a modal dialog, which I can still interact with document when the dialog is show.

    HI,
        Now, I am developing an automation plugin, and want to create a modal dialog, which I still can interact with document when the dialog is show.
        I find photoshop has some modal dialog have this function, such as the dialog of Customize Proof Condition and the dialog of Color Settings. Are these dialogs not modal dialog?
         Thanks!

    The whole point of a modal dialog is that you cannot interact with other things while it is active.
    And Photoshop does not support plugins accessing the rest of Photoshop while any plugin UI is active.

Maybe you are looking for

  • Color a specfic text view in a table dynamically

    Hi , I have got a SFLIGHT table display , According to the Flight Number I want to change the color of textView in that table . How should I do ? I have followed teh following steps : Created a Attribute colorCode of Type WDUI_TEXTVIEW_SEM_COL . Then

  • Need help exporting .mov files for editing in PE3

    hi, i'm trying to export HD .mov files from an Aiptek GO-HD camcorder that seems to record in QT format with some funky codecs. I need to export it into a format that i can edit on a PC using Premier Elements 3.0. The few tests i've run have shown a

  • What is the limitations of an Openhub

    Hi When we use openhub what is the limitations. Is there any limitations of an Openhib shankar

  • Darstellungsmängel bei CS 5 auf Apple iMac 27" Retina 5k

    Liebe Community, gibt es Updates oder Patches, die die Programme der CS 5 (besonders PS, ID und AI) mit der Bidschirmauflösung des iMac 27" Retina 5k kompatibel machen? Momentan ist die Bildschirmansicht noch fehlerhaft, besonders Schirften werden ve

  • Changing the Chart Color..

    Hi I have created a report with chart in siebel analytics. I would like to know that Can we change the color of a chart based on the creteria. for example if the revenue is less than 10000 than the chart bar is in RED & if it is greater than the Char