Close button in popup

hi,
how can i add button in popup window to close it? and i also want to display the value of element mapped to that window. i am new to web dynpro.
thanx...

Hi,
If you want a popup to have options save or exit then
you need to have two event handlers
1) Create two event handlers Ok,close. Under methods tap select eventhandler radio button.
2)In action button you write the following code
IWDControllerInfo cntrl_info = wdControllerAPI.getViewInfo().getViewController();
IWDConfirmationDialog confirm = wdComponentAPI.getWindowManager().createConfirmationWindow("You are going to Exit, Want to Proceed?", cntrl_info.findInEventHandlers("cancel"),"Cancel");
confirm.addChoice(cntrl_info.findInEventHandlers"ok"),"Confirm");
confirm.setWindowSize(250,100); confirm.setWindowPosition(100,100);
confirm.show();
3) In "ok" method in implementation you write your code to save
--appreciate needfull answer with points before closing the thread
Regards
Raghu

Similar Messages

  • How i can dissable/remove close buttons from popup window

    We have an web application so i want to dissable/remove the close button , so please help me as soon as possible.
    we are using only firefox for our web application and also for private use.
    Thank you.

    Just to be sure, you want to '''Remove''' the close button?
    I called the big guys for you.

  • How to close main window on click of a button on popup window

    Hi All,
    I have created a web page which on certain condition display a popup window to to provide information. Wht i want is that when i click on close button on my popup window, my main window should also close.
    Can anyone please help with this requierment!!!
    Regards,
    tushar

    Hi All,
    Could anyone of you please help me by answering the thread
    WDDOEXIT method not called when the application is closed from the portal
    Thanks,
    Subash M

  • How to close the detach popup on click of a button in the panel collection

    Hi,
    I'm using Jdeveloper 11.1.2.3.0.
    I have an af table surrounded by panel collection. There is a button on panel collection to commit the changes in the table.
    Clicked detach button to view the table in full browser.
    On click of Commit button, the detach popup is not closed. I have set partialSubmit of that button to false. Then also detach popup is not closed.
    Can anybody suggest me how to close the detach popup on click of a button in the toolbar.
    Thanks,
    Vinod

    Hi Frank,
    Thanks for your response. Popup is not closed.
    I tried this approach, when the view tree is navigated on the Detach, I see that the tree is same as if it is traversed on the page without detach.
    Printed client id and UI component class in the while loop, result is as below.
    r1:0:pc1:t3 class oracle.adf.view.rich.component.rich.layout.RichToolbar
    r1:0:pc1 class oracle.adf.view.rich.component.rich.output.RichPanelCollection
    r1:0:ph2 class oracle.adf.view.rich.component.rich.layout.RichPanelHeader
    r1:0:pgl1 class oracle.adf.view.rich.component.rich.layout.RichPanelGroupLayout
    r1 class oracle.adf.view.rich.component.rich.fragment.RichRegion
    pgl1 class oracle.adf.view.rich.component.rich.layout.RichPanelGroupLayout
    db2 class oracle.adf.view.rich.component.rich.layout.RichDecorativeBox
    db1 class oracle.adf.view.rich.component.rich.layout.RichDecorativeBox
    psl1 class oracle.adf.view.rich.component.rich.layout.RichPanelStretchLayout
    ps1 class oracle.adf.view.rich.component.rich.layout.RichPanelSplitter
    f1 class oracle.adf.view.rich.component.rich.RichForm
    Tried with setting partialsubmit property to false on the command button, still the popup is not closed and my Faces Message are shown behind the detach popup.
    Thanks,
    Vinod

  • How to create a button that close a window/popup.

    Hi, I must create in a view a button that close the window/popup that include the view, the button must be like the OK button of the popup or the X button at the top-right side . It's possible?

    Hi Avalor.
    You can create a custom pop up window. Just create a view that contains all
    elements that you want to display. Add the button that closes the view. Create a
    new window that only contains this new view. Use the mentioned method to create
    a new window as pop up. You just have to pass the name of the window you have
    created. Store the reference to the new window in the component controller
    (mr_window).
    From the new window->view you have access to the component controller.
    In the action handler of the button you can use something like this:
    wd_comop_controler->mr_window->close( ).
    Cheers,
    Sascha

  • Popup window - Close button

    Hi,
    We have a requirement to disable/hide the standard close button present in the Internet Explorer while opening a popup window (the X icon present in the top right section of internet explorer window) . Any pointers on how to achieve this would be really helpful.
    Thanks in advance.

    I don't think it is possible to hide X of any window, as it is default feature of explorer by MSDN.
    --Mukul                                                                                                                                                                                                                                               

  • Can I add a Close button to a popup window?

    My RoboHelp 10 project has nested popup windows (that is, I can open a popup window within a popup window within a popup window). The problem is, when I close the popup window at the lowest level, all of them close simultaneously. This is not good for navigation, particularly if the user is following instructions in the popup window and needs to go back up one popup window level.
    Is there a method by which I can close each individual popup window, for example, by adding a Close button to them? In other words, can I change the format of the popup windows?
    Your help will be much appreciated in finding a solution to this problem because it is fundamental to the way we want our Help to function. If a solution can not be found, we may have to change to another product to produce our Help.

    Hi,
    You can create a close buton by creating a link as follows with the following address:
    javascript:self.close()
    But I'm not sure whether this will work correctly with RoboHelp generated popups.
    Another question: why would you want multiple popups? Wouldn't it be better to create a popup that can tthen redirect to another topic? Having lots of windows wil become very confusing very fast.
    Greet,
    Willam

  • Popup Close Button

    Hi,
    I'd like to show a popup with a close button in its title bar. I'm using this code to create the popup:
           IWDWindow popup = wdComponentAPI.getWindowManager().createModalWindow(
                     wdComponentAPI.getComponentInfo().findInWindows(
                     "InvoiceDetailsWindow"));
           popup.setTitle("Title");
           popup.setWindowPosition(WDWindowPos.CENTER);
    but only the maximize button in shown.
    Thank you,
    Pietro

    For release >= 7.11 see this [tutorial|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/70c5186d-2d08-2d10-a6b6-818e832d05d8].

  • How to add close button in pannel ?

    hai friends,
        how to add close button in pannel ? give any example.
    regards,
    welcomecan

    Hi Welcomecan,
    You can use the TitleWindow as suggested by Subeesh for having a built in close button...The TitleWindow is infact an extension of the Panel container. TitleWindow is most generally
    used for creating PopUp Windows.
    Check the below link for examples...
    http://blog.flexexamples.com/?s=TitleWindow
    Thanks,
    Bhasker

  • Accessing Close button in TitleWindow

    Hi all,
    I have a situation where I'm adding buttons to a TitleWindow
    chrome. They co-exist with the close button provided by the panel.
    I create classes for my button images and then I size the buttons
    to fit the image.
    I also set the styles for the panel-provided close button
    with classes. My goal was to have all the buttons look & feel
    the same.
    Excerpt from application mxmxl ...
    <mx:Style>
    TitleWindow {
    backgroundColor: #333333;
    closeButtonDisabledSkin: Embed("assets/close.png");
    closeButtonDownSkin: Embed("assets/closeDown.png");
    closeButtonOverSkin: Embed("assets/closeDown.png");
    closeButtonUpSkin: Embed("assets/closeUp.png");
    </mx:Style>
    <v:ResizeWindow id="testResizeWindow"
    height="50%"
    width="50%"
    title="Resize Window"
    useWindowButtons="true"
    status=""
    showCloseButton="true"
    restoreWindow="this.currentState=''"
    maximizeWindow="this.currentState='maximized'"
    minimizeWindow="this.currentState='minimized'"
    close="popUp('Close button clicked')">
    </v:ResizeWindow>
    Excerpt from my ResizeWindow class ...
    override protected function createChildren():void{
    super.createChildren();
    if(useWindowButtons){
    if(btnMinimize == null){
    btnMinimize = new Button();
    var btnMinimizeImageObj:BitmapAsset = new
    btnMinimizeUpSkin() as BitmapAsset;
    btnMinimize.width = btnMinimizeImageObj.width;
    btnMinimize.height = btnMinimizeImageObj.height;
    btnMinimize.setStyle("upSkin", btnMinimizeUpSkin);
    btnMinimize.setStyle("overSkin", btnMinimizeDownSkin);
    btnMinimize.setStyle("downSkin", btnMinimizeDownSkin);
    btnMinimize.addEventListener(MouseEvent.CLICK,
    minimizeHandler);
    btnMinimize.focusEnabled=false;
    btnMinimize.visible=true;
    rawChildren.addChild(btnMinimize);
    Questions:
    1) For the buttons I add (e.g. btnMinimize) ... if I don't
    explicitly set the width and height, they default to 0 and button
    is invisible. Button class says it should size in accordance with
    the image. Is this normal behavior?
    2) Along the lines of #1 above, if I just create btnMinimize
    and give it a text label (no image), the button sizes to a width
    and height of 0. I have to set the width and height for it to
    appear? Is this normal behavior?
    3) I can't include a screen clip here but the close button
    succesfully uses the images I provide but it is larger than the
    other buttons (and the image is distorted). Can I set the height
    and width of the close button to match the image I'm providing (or
    conversely can I get the height and width of the close button so I
    can size my buttons the same)?
    Spent a few days and I'm getting nowhere ...
    thx in advance for any help ...

    Hi Laxmi,
    User has no control on OVS window.You can't  add your custom button on OVS window.In OVS Listener implement the three life cycle methods  i)onQuery ii) applyResult and  iii) applyInputValues which are predefine.
    Regards,
    Mithu

  • Close the ADF popup window from deployed JSP in other server

    I am attempting to open jsp page which one is deployed on tomcat server in adf pop up window from cmd button event.and this first jsp will forward to second jsp and i should able to close from pop window from second jsp close button.
    This is what i did:
    1) created pop-up window and run the delployed jsp on pop up page
    2) i used window.close script in second jsp but not popup window is not get closed .
    help me to achieve this pblm ....

    i was trying to open &close other server's jsp from ADF pop-up window ... so base is internal window (pop-up) only ,
    and already i used onclick="window.close();" in command button...but its not closeing the adf pop-up window ... how that jsp cmd button onclick event take control of adf pop-up to close ?
    help me ???

  • Disabling windows close button in dialog

    Hi,
    I am using Jdev 10.1.3.x(10g)
    I am opening a dialog pop up for a functionality. What i want is to force user to use cancel button provided inside dialog to come out of it and want user to not to use windows cance X button.
    Is there any way by which i can hide the title bar or disable the close button or on click of widow close i actually click on cancel button throgh java script?
    Main concern is i am passing some data from parent to dialog throgh process scope and i want to clear it on cancel. In my application there are many popup dialog which may lead to memeory issue so i seek solution to clear this data once it is not desired any more.
    Also i tried Request object to pass the data but in popup it is not recognised.
    Suggestion in any direction will be helpful.
    Regards,
    Kevin Chheda

    Hi,
    answering this question for 10.1.3 since 11g is different and provides a af:dialog component to handle this case. In 10.1.3 the window you open is an external browser window. You cannot disable the close button here because it is part of the browser window that JavaScript cannot control
    Frank

  • Close button on skillbuilder modal page

    All,
    I want to create another button to close my skill builder modal popup page. Ive the default close(X) working well but i want to have another close button at the bottom of the page so one at the top and another at the bottom of the page, i tried different javascript but not working..Any help on this please regards.

    it finally worked.

  • Browser close button / unload event

    Hi,
    In Ie8 session is carrying when i close the browser using X button. Is there any way to capture this browser close button or any portal unload event.
    Thanks
    Manu

    There is no clean way to do this. The only way i know of is to have a private global javascript variable true/false (true = show the popup, false = show popup) where the default value is true. On every click of link / form submit where you need the popup to be suppressed , set the value as false. (you can do this using a js library which can attach events to onsubmit, onclick of all links)
    However the behavior you are proposing is really , really annoying (as a user), consider your interface before implementing something like this. Valid usecases are prompting the user to save changes before leaving the page, not you are leaving the website (Thats why i typed something or closed the browser)

  • Internet Explorer CLOSE Button for OBPM 10GR3 Presentations

    Hi all,
    I am using OBPM 10GR3 presentations with a POPUP window.
    I already have a close button to close the presentation. This is a Global Interactive Activity which displays the dashboards.
    The Global Interactive Activity contains a screenflow and inside the screenflow I have a Interactive Component Call to call the presentation.
    Now the presentation opens smoothly and everything is displayed.. When we hit the CLOSE button everything goes away and when we open it again it again comes back to the previous Interactive Component Call and restarts.
    BUT
    When we Close the window itself instead of using the CLOSE button of the presentations, and we re-open, we get the previous data.
    This is because we do not hit the CLOSE button of the presentation instead hit the IE WINDOW CLOSE button on the top right hand corner besides the minimize maximize button.
    Therefore the call is still inside the screenflow inside the Global Interactive Activity and therefore it waits for the user to hit the CLOSE button of the presentations otherwise does not close.
    How can we resolve this issue?
    How can we make sure, that if the user closes the IE WINDOW itself using the CLOSE button, it closes the presentation itself and when re-opened displays the previous presentation?

    Hi,
    First of all this is a training issue with the user. It is not advisable not to press the close button of the IE.
    Nevertheles you can disable to close button of the presentaion.
    You can remove the x from dialogs by doing this. Open the executionDialog.xhtml file in the <OraBPMEnterpriseHomeDirectory>\webapps\workspace\jsf\common directory (both Studio and Enterprise have this file).
    Change the text on line 81 from this:
    <oc:Dialog verticalAlign="top" offsetY="40" backColor="#D4E1EB" borderColor="#517B9E"
    borderStyle="solid" borderWidth="1px" id="executionDialog#{componentBean.id}"
    title="#{fn:getMsg('EXECUTION')}" broadcastName="executionDialog#{componentBean.id}"
    maximized="#{componentBean.executionDialogMaximized}" width="#{componentBean.executionDialogWidth}"
    height="#{componentBean.executionDialogHeight}" titleBarCssClass="bpmWorkspaceDialogHeader"
    displayMaximizeButton="true"
    modal="false" jsObjectName="executionDialog#{componentBean.id}">
    to this:
    <oc:Dialog verticalAlign="top" offsetY="0" backColor="#FFFFFF" borderColor="#FFFFFF"
    borderStyle="solid" borderWidth="1px" id="executionDialog#{componentBean.id}"
    title="#{fn:getMsg('EXECUTION')}" broadcastName="executionDialog#{componentBean.id}"
    maximized="#{componentBean.executionDialogMaximized}" width="#{componentBean.executionDialogWidth}"
    height="#{componentBean.executionDialogHeight}" titleBarCssClass="bpmWorkspaceDialogHeader"
    displayMaximizeButton="true"
    displayCloseButton="false" modal="false" jsObjectName="executionDialog#{componentBean.id}">
    This change does a couple things. The addition of the text "displayCloseButton="false"" removes the x button that is causing the undesired results you're getting and setting the colors to #FFFFFF changes the light blue border around dialog boxes to white.
    Bibhu

Maybe you are looking for

  • NO internet in the network except for two computers after installing ASA 5505

    Hi Guys,,, I dont know if any of you guys had a problem like this... I installed a CISCO ASA5505 with 50 user license  to my network as the gateway firewall. So ASA is acting as the gaeway router which is connected to a fibre circuit and also it give

  • OWB Performance

    Can someone give me pointers on how can the mappings execution performance can be improved? Settings on O/S level, Database , mappings etc. Thanks.

  • Data selection error - peculiar problem

    Hi Experts, I have done a delta initialization with the selection as 05.2006 under the "from" field for "0calmonth". I assumed that in the delta, the data will be loaded further from this date as i have not given any end date in the "to" field. The d

  • Keynote to QuickTime Problem

    I create advertising DVD's to be displayed on TV's. To do this I create the slides which have text over the top of a .mov video background, convert the keynote to a QuickTime file, and then burn it onto a DVD using iDVD. Everything works perfectly up

  • Sixth times a charm?

    Someone please respond with something that will relate to my question! I see that people keep viewing my questions but no one even attempts to help me out. Are there any Apple employees online?? There is obviously a fix to this since my friend, who d