How to open a single WD Component in a popup window?

Hi,
I want to open a WD component in a popup window but don't know how. I have searched this forum without a result.
The following situation:
DC1 (main DC) with a button to open the popup
DC2 (popup DC)
How can I open DC2 in a popup window without destroying DC1 in a way like
if (!DC1.hasActiveComponent()) {
mainR_Usage.createComponent("my.comp.DC2","my.comp/comp~DC2~wd");
and of course how can I destroy the DC2-popup from DC1?
The general problem is not to open a popup window inside DC1. The problem is to open DC2 as a popup!
Thanks ahead

Hi Bernd,
You can try this:
1.Create a context attribute of the type IWDWindow in your view/Component Controller of DC2, say 'PopupWindow'
2.Create a method in your DC2, say
openPopup()
IWDWindowInfo winInfo = (IWDWindowInfo)wdComponentAPI.getComponentInfo().findInWindows("DC2Window");      
       IWDWindow popup= (IWDWindow)wdComponentAPI.getWindowManager().createModalWindow(winInfo);      
       wdContext.currentPopupElement().setPopupAttribute(popup);      
       popup.setTitle("Hello, this is DC2");
       popup.setWindowSize(600,500);
       popup.setWindowPosition(100,100);
       popup.show();
                       +// Save WindowIsnstance in Context
     wdContext.currentContextElement().setPopUpWindow(window);+
3.Expose this method in your Interface controller so that it is available to be called by DC1
4.in your DC1 you can call this method
      if((!DC1.hasActiveComponent())
     wdThis.wdGetDC2ComponentUsage().createComponent();
     wdThis.wdGetDC2Interface().openPopup();
5.This should open the popup window from DC2.
6. You can have a close button or any other event on the view contained in this window itself. On click of this button you can retrive the window instance stored in the context and destroy it.
e.g we have an action assigned to a Close button. this will be in the view from the window you are trying to open as a popup.
onActionCloseWindow()
         IWDWindow  window = wdContext.currentContextElement().getPopUpWindow();
         window.destroyInstance();
this should close yourr popup window.
Regards,
Ajay
Edited by: Ajay Patil on Jul 6, 2010 10:27 PM

Similar Messages

  • Want to open a abstract portal component in a popup window

    i have created two abstract portal components and corresponding jsp files, say a.jsp and b.jsp in a project.
    i have written a javascript "OpenNewWindow" in a.jsp. and i am calling it when user clicks on a link to b.jsp
    i have used window.open() function in that script. and i hae passed <project name>.<component name> as parameter to the function.
    the output opens a new window with all, masthead, toolarea and b.jsp. <u>But i want only  b.jsp to popup, without masthead and toolarea.</u>
    can you please help me out?

    Hi Jack,
    Try this in your script,
    window.showModalDialog(component, 'warning', 'dialogHeight: 190px; dialogWidth:
               439px; edge: Raised; center: Yes; help: No; resizable: No; status: No');
    Component is the name of your component...
    Regs,
    jaga

  • To Open 11g Forms output on a seperate popup window

    Hi,
    Anybody help me, how to Open 11g forms output on a seperate popup window. Now it is comming in browser itself.
    regards
    Ahamed Rafeeque CH

    This is controlled in the Forms Services configuration. You will need to modify the "separateFrame" configuration setting using the WebLogic Server interface. You could also modify the formsweb.cfg using a standard text editor, but it is not recommended. The default value for separateFrame is FALSE. By setting the value to TRUE it instructs Forms Services to use a seperate browser window for the Java Applet.
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • How to open links from document library in a new window?

    I have a column called "Links" in document library, i want to open those links in a new window. Please guide me on this how to achieve this.
    Thanks
    Ramanjulu Naidu N

    hi,
    See whether these links help you -
    http://preachingsharepoint.blogspot.com/2012/06/open-document-in-new-window-from.html
    http://stackoverflow.com/questions/5119919/sharepoint-links-how-to-open-in-new-tab-window
    http://www.benramey.com/2011/04/25/opening-all-sharepoint-2010-documents-in-a-new-window/
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/9db08c4a-b53c-419a-84f8-001c194d1311/how-to-open-sharepoint-document-library-pdf-file-in-new-window?forum=sharepointadminlegacy
    http://www.andrewconnell.com/Adding-OpenInNewWindow-option-to-SharePoint-Links-lists
    http://www.uccorner.com/32/sharepoint/sharepoint-open-links-in-new-window/
    Hope this helps!
    MCITP: SharePoint 2010 Administrator
    MCTS - MOSS 2007 Configuring, .NET 2.0
    | SharePoint Architect | Evangelist |
    http://www.sharepointdeveloper.in/
    http://ramakrishnaraja.blogspot.com/

  • I'm using "window.open()" to show one Calendar in a popup window. I can see that the popup is re-sizable. How can I prevent the user from re-sizing the popup?

    I'm using "window.open()" to show one Calendar in a popup window. I can see that the popup is re-sizable. How can I prevent the user from re-sizing the popup? I have tried "resizable=yes|no|1|0" and that seems to be not working.

    You can't prevent users from resizing a pop-up.
    *https://developer.mozilla.org/en-US/docs/Web/API/window.open

  • How to make mouseover effect text show image in popup window or tooltip?

    I am trying to display a popup image in a new window when the mouse moves over some text. Or perhaps, the image could display in a tooltip when the mouse moves over some text.
    However, I have achieved the functionality of an image appearing above the text when the mouse moves over some text. This is how I did this:
    I put this code into the Page HTML Header:
    <script type="text/javascript">
    <!--
    function setFirstChildImgDisplay(el,vis) {
    if(!el || !el.getElementsByTagName) return;
    el.getElementsByTagName('img')[0].style.display=vis;
    // -->
    </script>
    I created a region and put this in the Region's Title field:
    {div onmouseover="setFirstChildImgDisplay(this,'inline')"  onmouseout="setFirstChildImgDisplay(this,'none')">Check out Page 1 here <img src="#WORKSPACE_IMAGES#DGNR Preview Page 1.bmp" alt="Page 1 Preview" style="display:none;">{/div}
    I am thinking that I should not have all of this code in the Region's Title field. But, I don't know where else to put it in APEX.
    So my questions are:
    1. how to get an image to display in a popup window or as a tooltip when the mouse is moved over some text?
    2. where should the {div} content be placed in APEX, if not in the Title field?
    Please note that I used '{' & '}' instead of '<' & '>' just so the div would display in this post.
    Also, I would like to give credit to this website because this is where I found out how to do what I have provided above.
    http://forums.devshed.com/web-design-help-2/mouseover-effect-text-shows-image-321876.html
    Thank you in advance,
    Maggie

    It's just an image map. Play with the settings. Here's a shape layer making a hole in the water and adding a bit of color.

  • How to Open Two Excel Files in Multiple Monitors in Windows 7

    How to open two excel files in two excel windows using multiple monitors in Windows 7.
    Currently it opens multiple files on top of each other on the same one monitor.
    I found this article in a blog it says
    "The snap feature that you are looking for will not work unless you open two instances of Excel. This is because Excel Unlike Word is not a True SDI Application. Microsoft is aware of the Issue however there is no resolution to the problem but the workaround"

    If you are working almost the entire day in front of your computer at your office with lots of Excel Sheets and Word, then probably you might be working with a
    dual monitor or may be even more than that. Studies have shown that having an additional monitor increases the productivity by 20 to 30 percent (Source: NY Times)
    But some applications like MS Office Excel, even though you open multiple files, they are all from the same instance of the application. So if you want to compare two
    Excel
    files, then you may not be able to have it in two
    separate monitors as the files are loaded using the same instance of Excel. If you move one
    Excel
    file to the other window, the other Excel files are also moved to the other window.
    So how to have two separate Excel files or other application side by side in dual monitors?
    Option A:
    In Excel 2003, go to Tools -> Options ->
    General tab.
    Make sure the option, ‘Ignore other applications’ is checked. Now all the Excel files will be opened as separate instance and you can move the Excel files individually across the monitors.
    In Excel 2007, Click the Office button ->
    Excel Options -> Advanced.
    Under General, check ‘Ignore other applications that use Dynamic Data Exchange’.
    or
    As this method forces each Excel file as a separate instance, the memory consumption will be more. If you don’t want too many memory consumption then you can open only two instances (see
    Option B) and manage wisely to view in both the monitors.
    Note: If you are having issues like Excel opens without displaying a workbook, then you may have to
    uncheck this option. (See Microsoft Help for more details on this). You can use option B in this case. I have this option checked and I have not faced any issue yet.
    Option B:
    They key here is, the application has to be loaded as separate instances. Lets say you have opened an Excel file in
    Monitor 1 and you want to open the next excel file in Monitor 2. You can usually open another instance of Excel by browsing through the
    Start Menu -> Programs -> Microsoft Office ->
    Excel. Make sure this newly opened Excel file is the last Excel file you had viewed and then double click on the Excel file that you wanted to open. This will force the Excel to
    open
    in the second instance of Excel. Now you can move these
    two excel files separately across windows or monitors.
    This may be little cumbersome way to open new instances of Excel every time. The easy solution would be to keep these links in the
    quick links near the Start button. So, every time you want to open a new instance of the application, you can just use those quick links.
    hope work thanks
    http://www.lytebyte.com/2008/05/13/how-to-open-two-excel-files-side-by-side-in-separate-monitors/

  • ADF EBS Integration - How to open the ADF page in new tab or window

    Hi,
        We are building ADF custom applications and want to integrate them with EBS R12 (12.1.3) through Responsibilities and Menus.
    We have achieved session sharing and launching the Custom ADF app from EBS menu. The problem is, the Custom ADF page opens in the same page.
    Is there anyway to open the ADF application in new tab or window while launching from EBS Menu ? 
    Highly appreciate your help on this.
    Thanks,
    Ananthakumar

    Bhaskar,
    Refer old threads by searching for "new window" / "_blank"
    - Senthil

  • How to set the width and heigh in the popup window

    Hi All,
    I tried to show a report in a popup window style.
    In the column link section, I defined the URL like the following:
    javascript:popupURL('f?p=&APP_ID.:128:&SESSION.::&DEBUG.::P128_PAY_RATE,P128_PAY_TERMS:#PAY_RATE#,#PAY_TERMS#'). how and where to set the height and width for page 128?
    Thank you,
    spark

    Here is a sample of the JavaScript function I re-use that opens a popup window. You'll notice that it includes the width and height of the popup window:
      function callTCPopup (formItem1) {
        var formVal1 = formItem1;
         var url;
      url = 'f?p=&APP_ID.:1111:&APP_SESSION.::::P1111_TC_ID:' + formVal1;
      w = open(url,"winLov","Scrollbars=1,resizable=1,width=800,height=600");
      if (w.opener == null)
      w.opener = self;
      w.focus();
      }You could also look at using a Modal Page (Skillbuilders' plugin - watch the video for use).

  • How to disable minimize and maximize buttons of a popup window

    hello.
    can someone please tell how to disable the minimize and maximize buttons for a popup window.
    i know this is very basic concept.. but iam new to jdeveloper..please someone help me out

    Hello,
    U can use script in ur page to open the Popup window.
    window.open("yourpage.do", window_name, 'toolbar=0,scrollbars=0,location=0,status=yes,menubar=0,resizable=0,width=600,height=400,left = 225,top = 140');
    Bye

  • How do I hide the address bar when fullscreening "popup" windows?

    Sky TV's video player has a bad fullscreen implementation - you can make the player go true fullscreen but it reverts when it loses focus, so I can't multitask on my two monitors.
    The best workaround I've found is to use their "pop-out" player, which opens a new "popup"-style window (locked address bar, no search bar etc.) and I can then fullscreen the window itself (rather than the player). This allows me to hide
    - the window outline
    - the window title bar
    - the Windows start menu
    and it stays fullscreened when it loses focus.
    However, this does not hide the window address bar. On a normal Firefox fullscreened window this slides out of view after a short time; on the locked "popup" style window it does not.
    On the offchance that treating "popup" windows differently is a deliberate Firefox security policy... can I disable it?

    You only need to select the pop-up window after having opened the Browser Console or open the console before opening the pop-up to make that window the MostRecentWindow.

  • How to open a single photo from a photo stack

    Hi
    I am new to all this and I am trying to do some training in Photoshop.
    I have downloaded the photos from adobe to remove or re-position objects. The pictures that I have downloaded open as a stack in Photoshop us there a way that I can get them to go larger or to open singularly ?
    I can't get them big enough to work on.
    This is the tutorial  Retouch photos | Adobe Photoshop CC tutorials
    Thanks

    it seems, from the Layers panel, you have one, composite image.
    Use the Rectanglar Marquee tool to select the top one, then hit Cmd+J to put it on a separate layer.
    Return to the Background layer and select the next one, and repeat the process and so on until you have each on a separate layer
    Then go to File > Scripts > Export Layers to Files, save them as PSD's to the Desktop and they will be separate files

  • How to open a 2nd WD View in a new window?

    Hi,
    my WD Component has a button which opens a new view. I would like to open this view in a new window.
    I tried to link two views of two windows with plugs, but it seems like I'm only able to navigate between views of the same window....
    Up to now my solution was to open the view in a pop up window. Now its neccessary to open the view in a new browser window.
    For the background; with click on the button a pdf is generated (Interactive Forms). It is ok to display the generated pdf in adobe acrobat reader directly as well.
    Any suggestions how to handle this?
    Thanks in advance,
    Tan

    >
    Tan Yildiz wrote:
    > Hi,
    >
    > my WD Component has a button which opens a new view. I would like to open this view in a new window.
    > I tried to link two views of two windows with plugs, but it seems like I'm only able to navigate between views of the same window....
    >
    > Up to now my solution was to open the view in a pop up window. Now its neccessary to open the view in a new browser window.
    >
    > For the background; with click on the button a pdf is generated (Interactive Forms). It is ok to display the generated pdf in adobe acrobat reader directly as well.
    >
    > Any suggestions how to handle this?
    >
    > Thanks in advance,
    > Tan
    if your purpose is to display a interactive form as external window then you have to understand that number of button clicks would result into number of external windows and number of sessions to backend as well. You can't see which external window is related to which data in your application, you cannot close it from your parent window. User has to do that explicitly.
    I would consider the following.
    Embed the display view into a separate window.
    use create_window method to show the window .

  • [Solved] How to open n different URLs in n different browser windows

    Suppose there are 5 windows of dwb browser open. Using a script I want to open URL1 in first window, then URL2 in second and so on...
    Any other browser would do too.
    Last edited by nexutix (2014-07-28 22:04:34)

    x33a wrote:I am not sure about dwb, but with firefox, you can do something like the following:
    Sorry I wasn't clear enough. I need the windows to be specific.
    Say, I have window 1 on workspace 1, window 2 on workspace 2 and so on... Now I have URL1, URL2 and so on. I only want to open URL1 on workspace 1, URL2 on workspace 2 and so on. Then I will repeat that with new set of urls via a script.
    I have a just satisfactory solution with conkeror: (but it would be great to have a setup with a standard browser like firefox or chromium):
    Copy pasting from somewhere else:
    So after a little tinkering around, I found this solution:
    First I installend `xulrunner`. Then got conkeror .tar.gz from its git, extracted it and copied the folder twice; effectively creating 3 folders. Now in each folder, I edited each one's application.ini with
        Name=conkeror1
        Name=conkeror2
        Name=conkeror3
    Then I created .conkerorrc in home folder and added one single line:
        url_remoting_fn = load_url_in_current_buffer;
    You can also set it to `url_remoting_fn = load_url_in_new_buffer;` if you want newly issued urls to open in new buffers (tabs).
    Then simply issued commands like this:
        xulrunner conkeror1/application.ini "URL1"
        xulrunner conkeror2/application.ini "URL2"
        xulrunner conkeror3/application.ini "URL2"
    Voila! Each window is targeted separately!

  • How to use a single iTunes library when using multiple Windows Accounts

    Has anyone had success using a common iTunes library between multiple accounts on a single computer? I've tried and have been able to point all of the "different" iTunes programs in the different profiles to the same place...however, when I add files in one profile, they are not visible in any others. I've authorized the "different" iTunes in each profile to play music with my various iTunes store accounts...but no luck.
    Any thoughts? (As an aside, what happened to the days when Apple made everything simple? I mean, REALLY SIMPLE! They worked hard at that...and seem to have just given up on the things that made them GREAT! <sigh>)

    Drag the entire iTunes folder to a shared directory.
    Make sure all users have full access privileges to this folder.
    Start iTunes holding the Shift key and select *Choose existing library*.
    Now quit iTunes, log out and go the next user.
    Start iTunes holding the Shift key and select *Choose existing library*.
    Do this for each user.

Maybe you are looking for

  • Jabber and Desk Phone

    Hello guys, I've configured CUCM and IM&P v9.1 and jabber client 9.2(1), the chat works fine and also the Cisco Unified Client Services Framework Device can make and receive calls but if I try to select the desk phone for calls it just keeps trying t

  • Windows Vista and Photoshop CS2 Compatibility?

    I am considering the purchase of a new computer. I have Photoshop CS2, and I am debating whether to get Windows Vista or Windows XP Pro. I have read in the database about Vista and CS2, "Installs and runs with minimal known issues." But it also state

  • I can't open a zip file

    I just download the CD and am getting "unable to expand "xxxxxxx.zip" into "Music". (Error 2- No such file or directory). I then tried to open it in StuffIt Expander and it say the archive may be damaged. Could you direct me on how to make this work.

  • Corrupt attachments with damaged filenames

    hi, i'm experiencing problems when receiving certain attachments. the filenames look like this: 'Archive_17?= =?utf-8?Q?0607.zip?=' if i rename it to 'Archive17_0607.zip' i can open the zip, but the ppt-file inside is damaged. i had this problem quit

  • Clone from standby backup

    I have an 11g database with standby database. 1. Can i take RMAN backup from the standby database for Cloning. (Due to some network issues i cannot use the primary backup or connect to primary ) 2. Can i use this RMAN backup to clone for development