Detecting the current window in Forms 4.5

Hello,
Is there a way to detect the current window that is in use? I want to find the window's x/y coordinates to center another form or LOV on top of it. Thanks for any help you can provide.
Frank

To help make it more clear... If I have a 'root_window' and I launch an LOV or another form with a button on the window, I want to pass in the form or LOV (to be centered) into a procedure pCenterLOV('myLOV') without having to pass in the window name too. Hope this makes more sense.
Thanks again for your time.
null

Similar Messages

  • Detect the current transaction used in MIRO :EXIT_SAPLMR1M_001

    hi ,
    my requirment is to find  a way to detect the current transaction used within the MIRO transaction ,which can be one among
    invoice/ credit memo/ subsequent debit/subsequent credit .if the user  is using the credit memo ,  then prevent him from posting based on the authority /role given to him. Im making use of the Exit:EXIT_SAPLMR1M_001 for this.
    Please let me know which field of the exit parameters should be made use for detecting if the user is in credit memo transaction.
    Thanks in advance,
    Shyam.

    Hi
    Define a variable for VORGANG and set a value in the same way that from VORGANG SAP gives values for other fields in include LMR1MF5G (FORM vorgang)
      CASE rm08m-vorgang.
        WHEN '1'.                          " Rechnung
          rbkpv-xrech      = 'X'.          " - Rechnungs-Kennzeichen
          rbkpv-tbtkz      = space.        " - Nachbelastungs-Kennzeichen
          rbkpv-xrechl     = 'S'.
          rbkpv-xrechr     = 'H'.
        WHEN '2'.                          " Gutschrift
          rbkpv-xrech      = space.
          rbkpv-tbtkz      = space.
          rbkpv-xrechl     = 'H'.
          rbkpv-xrechr     = 'H'.
        WHEN '3'.                          " nachträgliche Belastung
          rbkpv-xrech      = 'X'.
          rbkpv-tbtkz      = 'X'.
          rbkpv-xrechl     = 'S'.
          rbkpv-xrechr     = 'H'.
        WHEN '4'.                          " nachträgliche Entlastung
          rbkpv-xrech      = space.
          rbkpv-tbtkz      = 'X'.
          rbkpv-xrechl     = 'H'.
          rbkpv-xrechr     = 'S'.
    So, do the algorithm in the reverse for fields XRECH, TBTKZ, XRECHL and XRECHR in MRM_RBKPV.
    I hope this helps you
    Regards
    Eduardo

  • How can I get a query in the search field to open in a new tab or new window from the current window?

    How can I get a query in the search field to open in a new tab or new window from the current window?

    If you are searching via the Search Bar on the Navigation Toolbar, this preference can be changed to have searches there open in a Tab.
    Type '''about:config''' in the Address Bar and hit Enter. Then answer "I'll be careful". Type this pref in the Search at the top.
    '''browser.search.openintab''' = double-click to toggle to '''true'''

  • How can I access the Tabs page in the current window, without opening a new tab?

    I like the new Tabs page. I'd like to open it in the current window, without the need of opening a new tab or window.
    Is this possible?

    You can make a bookmark and set the location to about:newtab to open that page in the current tab.

  • Content open up in the current window

    When I add content in the content area but when I click the link it opens up in the current window
    s oppose to if it had been URL Link there is an option to open up in current window.
    As I was searching in metalink I found somebody from Oracle had posted this :
    ### What were you trying to accomplish when the problem occurred? ###
    Author : Jerry Silver Type : N/A
    Date : Jun 6, 2001 11:22 PT
    Here's a solution for Portal 3.0.8 or later that allows you to open a file in
    a new browser window. It requires that you create a custom item type, and use a
    procedure to display a link to the file.
    1. Create the following procedure. You can create it in any schema, but the
    schema has to have select privilege on the view 'WWSBR_ALL_ITEMS' in the portal
    schema. In this example, the portal schema is PORTAL30. If you're running
    version 3.0.8, you'll also need to apply the patch to bug 1724250.
    Create or Replace PROCEDURE OPEN_FILE (p_itemid IN NUMBER) as
    fileURL varchar2(1024);
    baseURL varchar2(256) := '/pls/portal30/docs/';
    begin
    select baseURL | | filename into fileURL
    from portal30.wwsbr_all_items
    where id = p_ItemId;
    htp.p ('Open File');
    EXCEPTION
    when NO_DATA_FOUND then
    htp.p('Document not found or access denied');
    when others then
    htp.p(sqlerrm);
    end;
    The procedure generates a link to the item filename with a target of "_blank",
    which opens the file in a new browser window. Replace the baseURL attribute
    value with the correct Database Access Descriptor (DAD) and Document Access
    Path ("/docs") for your site.
    2. Grant execute on the procedure to the portal public schema. The name of this
    schema is <portal schema>_PUBLIC. So if your portal schema is PORTAL30, grant
    execute on the procedure to PORTAL30_PUBLIC.
    3. Create a custom item type, using the base item type of "File". I recommend
    that you create the type in the Shared Objects content area, so it can be used
    in other content areas (from the Navigator, go to the Content Areas tab, select
    Contents for Shared Objects, Custom Types, and Item Types - Create). Edit the
    Text continued in next action...
    new type and go to the Procedures tab.
    4. In the Procedure Call Properties, enter:
    Type: PL/SQL
    Procedure Call: <your procedure schema>.OPEN_FILE
    Link Text: Open File (it doesn't matter what you put here - it only displays if
    "Display Procedure Results With Item" is unchecked.)
    Check "Display Procedure Results With Item"
    5. Under "Pass Attributes as Parameters", enter:
    Attribute: Item Id
    Pass As: p_itemid
    (Notice how you can pass most of an item's attributes to a procedure. You can
    take advantage of this feature to write procedures that give you precise
    control over the rendering of your items).
    6. In the properties for the content areas in which the new type is to be used,
    go to the Items tab. Specify that you want the new type to be visible. You may
    want to hide the base File item type, so users won't be confused by two
    different item types for files.
    7. Edit the folder style for the content area. Go to Folder Layout. Edit the
    region properties for each region in which you will be using the new item type.
    For each region, replace "Display Name or Image" with "Display Name". "Display
    Name or Image" will render the Display Name as a link to your file that opens
    the file in the same browser window. "Display Name" simply renders the display
    name as text, with no link.
    8. Now you can create items of the new item type. Each item's Display Name will
    appear next to a link that says "Open File". Clicking the link will cause the
    file to open in a new browser window.
    Hope you find this useful.
    But after doing this the issue with this still I am able to see this as link on the page but when I
    click on it opens up in current window. But when I click on the header bar that
    displays Content Area name then it takes to the content are manager. Here there is
    a link that shows OPEN_FILE link and then it opens up in a new window.
    But I don't want user to go inside the content manager to see the content to open up in a new window.
    I want this same functionality to be there on the page rather then in the content area navigator
    Thanks

    fuscia wrote:
    stonecrest wrote:sh -c "cd %f && urxvt"
    can't help being ignorant: what is that?
    A shell script for entering the working directory and launching urxvt.
    Try it and see if it actually works.
    I think I tried something like that but wasn't successful...
    Last edited by moljac024 (2008-09-26 12:28:43)

  • Why does Firefox keep opening new Windows rather than a new Tab in the current window?

    I have " Open a new Tab in the current Window" select in Preferences.
    Why then does this version (Version 4) keep opening new Windows, rather than new Tabs in the current Window.
    This feature worked fine in 3.6.1.3, but in Version 4, it is a frigging pain in the rigging!
    C'mon, Mozilla - time for an URGENT update ...

    That issue can be caused by an extension that isn't working properly.
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode

  • How can I get any of the search requests to open in a new tab and not the current window. I have just downloaded the new FF8

    In my previous version of FF, whenever I did a search with any search engine the results opened in a new tab. Now with FF8 the results open in the current window which really is inconvenient. How do I get the search results to open in a new tab instead?
    I have Windows xp FF8

    To open the <i>about:config</i> page, type <b>about:config</b> in the location (address) bar and press the "<i>Enter</i>" key, just like you type the url of a website to open a website.<br />
    If you see a warning then you can confirm that you want to access that page.<br />
    *Use the Filter bar at to top of the about:config page to locate a preference more easily.
    *Preferences that have been modified show as bold (user set).
    *Preferences can be reset to the default via the right-click context menu if they are user set
    *Preferences can be changed via the right-click context menu: Modify (String or Integer) or Toggle (Boolean)
    Use the Filter at the top of the page to locate this pref: <b>browser.search.openintab</b>
    If the value of the browser.search.openintab pref is false then toggle the value to true with a double click on that line.
    See also http://kb.mozillazine.org/about:config

  • On websites which open pop-under windows, Firefox 4 seems to be opening these over the current window instead of under. Is this a bug or an intentional feature?

    I have noticed a problem on FF4 when browsing sites that open pop-under windows on a user action. With all other browsers (including FF3) these open underneath the main window, but on Firefox 4 they open over the top - acting as pop-ups and not pop-unders.
    While pop-unders are annoying, it is even more annoying to have them keep appearing as pop-ups instead.
    I have run some tests and the following code successfully opens a pop-under on all browsers except Firefox 4.
    It appears that window.focus() is not correctly bringing the current window to the top.
    Example code:
    var w = window.open('http://www.mydomain.com/', 'mywin', 'width=400,height=300,toolbar=1,menubar=1,resizable=1,scrollbars=1');
    if(w){
    w.blur();
    window.focus();
    }

    This is normal. Firefox 4 has disabled the default "window flip".
    - go to adress about:config
    - accept and search dom.disable_window_flip set to false;
    And popunder, blur/focus javascript function will be back ;)

  • What is the system variable to find the name of the current window in S.F

    hi
    what is the system variable to find the name of the current window in S.F

    Hi ,
    SFSY_PAGEWINDOW
    regards,
    Prashant

  • When I open a new window, the current window is closed. I would like to keep the current window and open the new window without losing my current window. I checked "Open new window in a new tab instead" under tabs

    When I open a new window, the current window is closed. I would like to keep the current window and open the new window without losing my current window. I checked "Open new window in a new tab instead" under tabs
    == This happened ==
    Every time Firefox opened
    == Noticed yesterday, June27, 2010

    i just went into preferences, deleted what was in the home page, and entered a new home page address which solved the problem, 

  • Firefox opens new windows under the current window

    Whenever I right-click on a link and tell it to open in a new window, the window opens behind the current window. I have selected "When I open a link in a new tab, switch to it immediately". That used to solve this problem but seems to have stopped working.
    I have read all the threads on this problem, including the one saying it's caused by Flash.
    However, I have checked in safe mode and I still get the same problem.
    This started happening around Christmas on three computers. Since then, because of problems getting a driver to install for a new peripheral, I have done a fresh install of Windows 7 64 bit, reinstalled FF newest version and restored my profile, but get the same problem. At this point I have started in the FF safe mode which should disable all the add-ons, but the same thing still happens. I have also reset FF using the reset option in the help menu. It doesn't always happen, but it can happen when flash is already running in another window.
    Are there a series of steps I can take which will verify that the fault is caused by Flash? I had thought the safe mode would do that.
    Honestly, this is enough of a problem to make me switch browsers, and I don't even like any of the other browsers. If you can offer any other suggestions I would really appreciate it.

    Safe Mode actually doesn't disable Flash. It's a little confusing: it disables extensions, but not plugins, so "Restart with Add-ons Disabled" is really not a very good description.
    If you want to test with Flash disabled, you can set it to "Never Activate" temporarily. Open the Add-ons page using either:
    * Ctrl+Shift+a
    * orange Firefox button (or Tools menu) > Add-ons
    In the left column that lists the categories, click Plugins. You're looking for "Shockwave Flash." Change it to "Never Activate."
    You can keep this tab open during your testing. If you close and re-open the Add-ons page, Shockwave Flash will fall to the bottom with the other disabled plugins.

  • Why does "open in new tab" function, open in both new tab, and the current window ?

    Right click on something, select "open in a new tab" As well as opening in a new tab, quite frequently the current window is overlayed with the same thing.

    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem.
    *Switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance
    *Do NOT click the Reset button on the Safe Mode start window
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    There are other things that need your attention.
    Your System Details List shows multiple Flash plugins.
    # Shockwave Flash 14.0 r0
    # Shockwave Flash 11.7 r700
    You can find the installation path of all plugins on the <b>about:plugins</b> page.
    *http://kb.mozillazine.org/Issues_related_to_plugins#Identifying_installed_plugins
    You can check the Flash player installation folder for multiple Flash player plugins and remove older version(s) of the plugin (NPSWF32) and possibly (re)install the latest Flash player.
    *(32 bit Windows) C:\Windows\System32\Macromed\Flash\
    *(64 bit Windows) C:\Windows\SysWOW64\Macromed\Flash\

  • FF4 wont move a tab to a new window. The new window opens fine but the existing tab stays on the current window. What's wrong?

    I just upgraded to firefox 4. I'm using session manager extension.
    I have multiple tabs open in my firefox window and I want to move some tabs to a new window. I followed the support guide which tells how to do this, however, when I drag the tab off the current window, the new window gets opened as it should, but the tab I was trying to move stays in the current window and does not get moved to the new one. Any ideas what the problem is?
    Thanks
    Mick

    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • When I open a link in a new window it opens BEHIND the current window.

    links that open a new window open the window behind the current window instead of in front of it. This just started happening in the last week or so.

    Hi MudBug
    see : [https://bugzilla.mozilla.org/show_bug.cgi?id=790013 Bug 790013] , see the comment 10 if this helps
    thank you

  • How to install windows server 2012 r2 without remove the current windows 8.1

    how to install windows server 2012 r2 without remove the current windows 8.1

    Use guide below to convert it to 'basic' disk, or install windows on another drive. The supported way is to delete all partitions and convert it to a basic disk.
    https://technet.microsoft.com/en-us/library/cc755238.aspx
    However, your windows 8.1 must be on another drive?, as windows cannot boot from a dynamic disk.
    Best Regards,
    Jesper Vindum, Denmark
    Systems Administrator
    Help the forum: Monitor(alert) your threads and vote helpful replies or mark them as answer, if it helps solving your problem.

Maybe you are looking for

  • Why is it not possible to connect a photo with an appointment in my ical?

    The calender features are in all too basic. I want to click on a certain time and set an appointment for that time. Does this work and i just dont know how yet? Thank you for any answer!

  • Screen turns blue when booting up to Microsoft outlook

    my screen turns blue everytime i turn on mircosoft outlook...have to retry several times before the email screen appears. does anyone know what causes this? thanks

  • Pop3S using custom truststore

    Greetings, I'm currently trying to connect to an email folder via pop3s using javamail API. I have no problem doing so with this simple code: props.put("mail.pop3s.timeout", timeout); props.put("mail.pop3s.connectiontimeout", timeout); session = Sess

  • API / Sdk to play swf files inside a Mac / Windows application

    Hi We have set of .swf movie files in our application. These .swf movie files has to be played inside the content area of the window. We want to know how to play .swf movie files through program inside our application. Is there any api / SDK to play

  • Pop up events

    Hi, I am able to open pop up, but i need to capture the event when user clicks on "OK" or "Cancel" button. How can do that. Below is my piece of code. data lo_window_manager type ref to if_wd_window_manager.   data lo_api_component  type ref to if_wd