Managing Two Windows

I have two windows in my application. On When_Window_Closed trigger, I need the system to determine which window is opened. If a secondary window is open, I want it to close and my main screen to open, but if the only window opened is the main screen, then I want that to close.

Try the code below. I guess there might be some elegant way of achieving this, but this is the one I could come up with now
DECLARE
win_id0 WINDOW;
win_id1 WINDOW;
blk_id0 BLOCK;
blk_id1 BLOCK;
BEGIN
win_id0 := FIND_WINDOW('window0'); -- This assumes that window0 is your so-called main screen
win_id1 := FIND_WINDOW('window1'); -- This assumes that this is the secondary window
blk_id0 := FIND_BLOCK('block0'); -- A block on the main window
blk_id1 := FIND_BLOCK('block1'); -- A block on the secondary window
IF :SYSTEM.cursor_block = 'block1' THEN
HIDE_WINDOW('window1');
GO_BLOCK('block0');
ELSE
HIDE_WINDOW('window0');
END IF;
END;
Hope this help you out.
null

Similar Messages

  • Can I use iCloud on two Windows 7 PC's? (same apple ID)

    Hi!
    I am a new user of Apple products and would like to use iCloud on two Windows PC's to upload Pictures and be able to see them on iPad. I manage to setup one computer and upload a few pictures for test and it worked, however when I setup computer number 2, nothing happens after I put the pictures on the required location to upload.
    Please let me know if this is feasible and if is not, what do I need to do to enable computer number 2 as the one to use and disable using computer 1 (the one working so far)
    Regards

    You can only create iCloud account on an iOS device (iPhone, iPad or iPod Touch) running iOS 5 or higher, or on a Mac running OS X Lion (10.7.5) or higher.  After creating your account on one of these devices you will then be able to sign into the account using your iCloud ID on your PC.

  • Terminal won't stop opening two windows.

    Every time I open Terminal, it opens two windows. One window has a bunch of text at the top that appears to be old commands(perhaps that I had typed? I don't remember all that I've typed into Terminal since the beginning of time ) in grey and then the normal Terminal prompt in the usual green(that's the theme I have) after all the text. The second window is in a fullscreen space thingy(Lion's mission control interface) and it looks similar except the text is different and there is a LOT more of it.
    I'm not quite sure what to do to make this stop. I've tried deleting the plist file for Terminal. I've tried restarting the computer. I've tried closing both windows, opeing a new one, positioning how I'd like it posistioned, then quitting Terminal by holding alt/option and cliking "Quit and Keep All Windows" from the Terminal menu.
    Is there a place where there are setting files for an app's window positions/defaults?
    It may also be good to mention, as it seems possibly relevant, that every time I open iPhoto, it opens in a fullscreen space much like the second Terminal window. I've tried similar things on iPhoto to get IT to stop doing this.
    Thanks for any help!

    Okay, so I actually found a solution to the problem!
    I cannot claim it as my own since I found it on another discussion page as well as CNET, but I'll post what I did here for others to see.
    The two helpful pages were:
    http://reviews.cnet.com/8301-13727_7-20083707-263/managing-mac-os-x-lions-applic ation-resume-feature/
    and
    https://discussions.apple.com/message/15859853#15859853
    What I did was:
    1. Enable "Restore windows when quitting and re-opening apps" under General in System Preferences(I don't know for sure if this is necessary, but it seemed harmless with my new found knowledge as you'll see in a moment)
    2. Navagate to "~/Library/Saved Application State/" in Finder
    3. Find the folder named "com.apple.Terminal.savedState"
    4. Move it to the trash
         This resets the state that the application uses to open each time it opens, when you open it now, it'll recreate the folder
    5. Launch Terminal
    6. Open the Get Info dialog for the newly created "com.apple.Terminal.savedState" and tick the "Lock" checkbox
         This prevents the contents of the folder from being changed, resultantly preventing ONLY Terminal from saving the state of it's windows on closing.
    Not only did this solve THIS problem, but it opened up some cool options:
    -By Locking any of these folders, one can keep a sort of template for how they'd like the windows of an application to open every time.
    -One can leave on the "Reopen windows" preference but select applications for which they do not wan't it to work. It is a semi useful feature, and I can understand why it was added, it just seems like an oversigt that it was only a global or no feature.
    -One can reset the window options of any trouble making apps in the future.
    Note: This also solved the problem I was having with iPhoto!

  • RDS 2012 R2 - How do I lockdown access to Local Computer Management and Windows Backup via Group Policy

    Greetings all,
    I am needing assistance in how to lockdown access to Local Computer Management and Windows Backup via Group Policy for users that access RDS service. I have followed this awesome guide - h t t p://w w w.it.ltsoy.com/windows/lock-down-remote-desktop-services-server-2012/
      - but it is missing two important resources that I would like to lock down.Currently, I have successfully locked down Control Panel for users via Group Policy, but I cannot find any group policy or guide on how to restrict user access
    to Computer Management (different to Server Manager). When using Win-X shortcut to open the 'Administrator's shortcuts' near the windows icon, I have locked down everything except Computer Management. Computer Management gives direct access to Disk Management,
    Shares etc, which are locked down for users. But Windows Server Backup is still accessible. Can someone please guide me on how to restrict access to both Computer Management and Windows Server Backup.
    Thanks in advance.
    Terry.

    Prevent running of Windows Server Backup
    Computer Configuration\Policies\Windows Settings\Security Settings\File System
    Right click on File System - Add File - Drill down to \System32\wbadmin.msc
    On the Database Security ACL that pops up - Remove Creator Owner, Remove Users and check Adminstrators have Full Access.
    On the Object window - choose Propagate inheritable permissions to all... (Default)

  • How to install Oracle imaging & process management in windows xp prof

    Hi All
    I am trying to install oracle Imaging & Process management in windows XP. Please let me know whether it is possible in windows XP or not... which I couldn't able to install in XP. when I saw the Install doc, it mentioned it is possible in windows server 2003. Installation guide mentioned that we have to setup 6 or 7 different server setups.
    or
    If any one have I/PM installation steps for windows server 2003 Please provide the steps.
    Any input would be greatly appreciable.
    regards
    Vijay

    Vijay,
    IPM is not certified to be installed on Windows XP (as for IPM services).
    It is possible to install IPM on one server machine (or two, if you need Web). First, you have to decide, which services you have to install.
    regards
    Jakub

  • Managing two libraries

    hi there,
    I am having problems managing two libraries. I am trying to create two separate libraries, AAC and Lossless. I was given the advice below, which I followed, problem is when you switch back and forth between the libraries, if switches songs from my Lossless library which are stored correctly in the Lossless folder to files from the AAC library and vice versa.
    Also, each time you switch libraries you have to go to advance preferences and indicate where you want to store the files. Example, I have the Lossless library open, the preference is set as G:/music/lossless; when I exit that library and open the AAC library the preference is set to the Lossless library. I don't mind changing that if I have to but the problem of the libraries switching content from AAC to Lossless is the big problem. Any advice?
    PREVIOUS POST INFO:
    Do this.
    Create 2 folders on the external.
    G:\Music\Lossless
    G:\Music\AAC
    Hold Shift (for Windows), Option (for Mac) and launch iTunes
    Select Create new library and select the AAC folder you created above.
    This will create a new iTunes folder in G:\Music\AAC. You should now have G:\Music\AAC\iTunes\.
    Go to Windows Exploder and move all your AAC files into G:\Music\AAC\iTunes\iTunes music\ folder.
    Go to iTunes menu File -> Add folder to library and select G:\Music\AAC\iTunes\iTunes music\.
    Quit iTunes and restart holding Shift (for Windows), Option (for Mac).
    Select Create new library and select the Lossless folder you created above.
    This will create a new iTunes folder in G:\Music\Lossless. You should now have G:\Music\Lossless\iTunes\.
    Go to Windows Exploder and move all your Lossless files into G:\Music\Lossless\iTunes\iTunes music\ folder.
    Go to iTunes menu File -> Add folder to library and select G:\Music\Lossless\iTunes\iTunes music\.
    Next time you launch iTunes hold Shift* (for Windows), Option (for Mac) select Choose library and select teh iTunes library.itl file in teh folder you want.
    Make sure you first set your Import prefs to AAC or Lossless, depending on which folder you are in.

    I have a similar situation. I have a 8gb ipod touch and a 30gb ipod video. I only have one library and what I did was to have the video sync with my entire library (about 25 gb). For the touch, I have it sync only playlists that I select. (You can edit how a ipod syncs when you connect to the computer) this setting is under the music tab.
    If you want to move the library off the computer, make sure you follow apple's instructions.
    http://support.apple.com/kb/HT1449
    For the photos, each ipod can be setup to either sync the entire library or selected events. the settings for this are under the photo tab.

  • Can't install KB3036437 on two Windows 2003 servers

    I am trying to install System Center Endpoind Protection 2012 Client 4.7.205.0 (KB3036437) and it will not install on two Windows 2003 Servers. It is giving me the following error:
    Installation Failure: Windows failed to install the following update with error 0x80070643: Update for System Center Endpoint Protection 2012 Client - 4.7.205.0 (KB3036437).
    I completely removed System Center Endpoint protection and reinstalled. When I first installed SCEP it was version 4.3.220.0. Soon after version 4.5.216.0 showed up through WSUS. I installed it and it installed fine with no problems. Even though it
    did not prompt for a restart I did it anyway. After reboot version 4.7.205.0 showed up through WSUS. When I told it to install I got the error above.
    Because of error 0x80070643 I have completely removed and reinstalled .Net framework version 2.0, 3.0, 3.5 and 4. I have also performed ran a FIXIT to fix software update registration corruption issues. Neither one of these worked either.
    I have turned on MSI logging and the only error I see comes from the MPCMdRun.log and it says: ERROR: MpWscUnregister() Failed 8004100E
    Anybody have any idea what to try next? Since the update won't install would this qualify for free support through Microsoft?

    Hi,
    To apply this update, you must have one of the following installed:
    Cumulative Update 1 or later for System Center 2012 R2 Configuration Manager
    (http://support.microsoft.com/kb/2938441/ )
    Cumulative Update 5 or later for System Center 2012 Configuration Manager Service Pack 1
    (http://support.microsoft.com/kb/2978017/ )
    Service Pack 2 for System Center Configuration Manager 2007, Update Rollup 1 for
    Forefront Endpoint Protection 2010,and update
    2952678 for Forefront Endpoint Protection 2010.
    For more information, please review the link below:
    February 2015 anti-malware platform update for Endpoint Protection clients 
    http://support.microsoft.com/kb/3036437/en-us
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • Media card not being recognized by Media Sync / Dekstop Manager or Windows

    I hope someone can help me with this.
    I've got a Bold 9000 running OS 5.0.0.411 (the Vodaphone offiical release, not the Bell one).  I'm on Rogers though.
    I have an 8GB Sandisk card in it which the phone reads fine.
    However, Media Sync, Desktop Manager, and Windows 7 64-bit wont read it.
    I've done the following to try and fix this:
    - Mass Storage Mode Support is "on", doesn't help
    - tried reformatting the media card through the phone, doesn't help.
    - tried reformatting the media card through Windows, doesn't help.
    - tried uninstalling Desktop Manager and just installing the USB drivers, doesn't help.
    - tried re-installing Desktop Manager, doesn't help
    - tried updating the "RIM Blackberry SD USB Device" driver, no change as Windows says it has installed the right version.
    - tried both versions of Media Sync (older and just released version), doesn't help.
    - tried another SD card, doesn't help.
    - under Computer Management > Disk Management, the SD card shows up, but with no drive letter assignment.  If I try to assign one, it doesn't work.  Basically if I check anything but "Properties", it tells me there is no drive there.
    Does anyone have a suggestion to fix this or should I reload the older OS?  Admittedly, I don't know if even that will help because the last time I ran Media Sync on my phone was when I was running Vista so maybe it is not the phone but a Windows issue.
    Any suggestions would be appreciated.  Been searching for the last two days and can't seem to find an answer.
    Cheers.
    BB-past: 9000>9700>9800>9780>9810>9900>Z10>Q5

    Me too:
    BB Pearl 8120 (OS 4.5.0.124)
    Windows7 Pro 32bit
    BB Desktop Mgr. 5.0.1
    Reading/accessing the media card via USB always worked fine in XP, and still works fine in Ubuntu Linux (I could never get Bluetooth to do it at all). With the Windows7 upgrade, suddenly Windows can detect but not read the card. It's detected as a removable disk in Explorer, but when you try to open/browse it, Windows throws up a dialog that says "Please insert a disk into removable disk (F."
    The phone sees it just fine, XP sees it just fine, Ubuntu sees it just fine. It's more likely to be a Microsoft problem than a RIM problem, but it's still friggin' annoying. Does anyone know a workaround for this? The Desktop Manager software won't run under WINE for me.

  • Battery gauge error running Power Manager for Windows XP version 5.20

    Last week on my R61 (8932-CTO),  Update Retriever and System Update requested that I download and install ThinkPad Power Manager for Windows XP version 5.20. After rebooting, I immediately received an error box with the following message: 
    An exception occurred while trying to run"C:\Progra~1\ThinkPad\UTILIT~1\PWRMGRTR.DLL,PwrMgrBkGndMonitor"
    As a result of this error, the battery gauge no longer displays correctly. The space where it used to be is blank, but clicking the empty space still gives you the option of starting Power Manager.
    What is puzzling about this is that version 5.20 is not available in either in the Driver Matrix, nor on the Downloads and Drivers web page. The version of the software that is presented there is version 5.13.
    The driver for ThinkPad Power Manager for Windows XP - version 5.20 can be downloaded from:
    http://download.lenovo.com/ibmdl/pub/pc/pccbbs/mobiles/ghu704ww.exe
    http://download.lenovo.com/ibmdl/pub/pc/pccbbs/mobiles/ghu704ww.txt
    Another interesting point, is that this version of the driver has, as yet, not been presented to me on my R500 (2714CTO), although both machine types are listed as supported models.
    Why are Update Retriever and System Update downloading software that apparently has not been officially released yet?  Why is this only happening on my R61 and not on my R500?
    And last of all, why has his software been released when it seems to have an obvious problem? 
    Any explanations would be appreciated.
    ThinkPad R61 8932-CTO T8300 2.40 Ghz 3GB RAM Win XP
    ThinkPad R500 2714-CTO P8600 2.40 Ghz 3GB RAM Win XP; Two ThinkPad R500's 2714-CTO T9600 2.80 Ghz 4GB RAM Win 7
    ThinkPad T500 2241-DB9 T9600 2.80 Ghz 4GB RAM Win 7
    ThinkCenter A63 5237-CTO 3GB Ram Win XP; A21m and a pair of 380XD's

    I just wanted to confirm that the last working version for Windows XP is version 5.05 revision 04.
    It can be downloaded from Lenovo:
    http://download.lenovo.com/ibmdl/pub/pc/pccbbs/mobiles/g6u702ww.exe
    http://download.lenovo.com/ibmdl/pub/pc/pccbbs/mobiles/g6u702ww.txt
    Cheers!

  • New Virtual hard disk wizard hangs after creating new vhd from huper-v manager on windows 7

    New Virtual hard disk wizard hangs after creating new vhd from huper-v manager on windows 7 workstation. 
    Windows 2008r2 hosts the hyper-v server. I can create VMs and VHD's when connecting to the server locally with the hyper-v manager. 
    The issue arises when I try to connect to the hyper-v server from my workstation which runs windows 7. 
    I have installed  The Windows6.1-KB958830-x64-RefreshPkg.msu that was suggested for windows 7 sp1. 
    I can connect to the hyper-v server, create vm's but  I cannot create vhd's  the gui just hangs with no errors in event log or on screen. 
    The files are there on the hyper-v hard drive but i suspect they are just created by windows as they are written and are not valid. 

    I've had just the same solution. Both did Hang Fixed size and flexible.
    Two parts were taken:
    1 - KB939820 for Windows 2003 server based domain controllers
    2 - disable using IPv6 on your NIC
    Result - both types of VHD's are created normaly.
    -----Infrastructure----
    Windows 2003 Domain upgtraded to 2008R2
    Windows Server 2008R2 Hyper-V - virtualisation clustered
    Windows 7 Pro - Hyper-V management
    Feel free to use --Mark as answer-- or --Propose as answer-- option and rate if a comment helps you or seemed usefull. -------------- Не забывайте использовать кнопки --Отметить как ответ-- или --Предложить как ответ-- и проголосовать, если
    комментарий вам помог или кажется полезным.

  • [Solved] Chromium launching two windows

    I'm running a bare bones xorg setup with no window manager.  Instead in /etc/X11/xinit/xinitrc I have the line:
    exec chromium
    When I close chromium X11 then exits.  I have it set up this way because the only X11 app I use is chromium.
    The problem is when I start up chromium I get whatever windows were open before, plus an extra one.  Even if I exited chromium by closing all the previous tabs I get two windows, each with the startup tab.  This is getting annoying.
    Any idea on how to fix it?  I already tried all three "On startup" options, and changing the line in xinitrc to exec chromium --auto-launch-at-startup but neither has fixed the problem.
    Edit: Nevermind, I ended up calling chromium from two different places.  Sorry to take you time.
    Last edited by zenten (2012-07-15 14:21:44)

    What's the getURL command?
    Bill@Bean wrote:
    > I am creating a demo designed to run on a CD-ROM. In the
    demo is a button that
    > when clicked should open a browser window and go to a
    specific site. I have
    > been using just getURL to achieve this. Works great on
    PC but on the Mac it
    > opens two windows (one window goes to my site, one to
    the default homepage).
    >
    > Any ideas? Thanks in advance for your help!!
    >
    http://www.baynewmedia.com
    Faster, easier, better...ActionScript development taken to
    new heights.
    Download the BNMAPI today. You'll wonder how you ever did
    without it!
    Available for ActionScript 2.0/3.0.

  • Using two ipods on two Windows accounts for same computer

    I am trying to connect and iPod nano but it does not appear in the Devices section of iTunes.  Rather, when I plug in my iPod to my Windows Vista computer, I get an error "The software required for communicating with the iPod is not installed correctly.  Please reinstall iTunes to install the iPod's software.".  It does appear in Windows Explorer.
    Yet my daughter has her own (i.e. a second) iPod and iTunes functions properly for her when she accesses it from her windows account.
    I have tried unistalling the iTunes software and reinstalling it but I still get the same error in my account.  I have gone through most of the troubleshooting steps in iTunes support but nothing has helped.  Is it not possible to manage two ipods with the same computer from two different accounts or is it something else?
    Any other thoughts?

    Apple intentionally made the iPod to work this way to help stem the illegal sharing of copyrighted material which is what you are trying to do.
    "i have tried to "transfer purchases from ipod" but this does not work either, even though i have authorised the computer."
    Doesn't work that way. It wasn't your iTunes account that purchased the music.

  • Is there a way to add two windows in the same window?

    is there a way to add two windows in the same window?

    what do you mean by your first use of the word "window"? do you mean a visible frame? a section of the gui that the user doesnt see?
    or perhaps you mean you want to add multiple tabs to a single window, so that switching between tabs shows different windows?

  • Unable to install Adobe CS5 64 bit package created using Adobe Application Manager on Windows 7 64

    I am unable to install Adobe CS5 64 bit package created using Adobe Application Manager on Windows 7 64 bit.Basically installation rollback on Win 7 64 bit image.
    MSI Log File :-
    Property(S): ProductToBeRegistered = 1
    MSI (s) (5C:D4) [17:59:21:784]: Note: 1: 1708
    MSI (s) (5C:D4) [17:59:21:784]: Product: Adobe_CreativieSuite_5_MNT -- Installation operation failed.
    MSI (s) (5C:D4) [17:59:21:784]: Windows Installer installed the product. Product Name: Adobe_CreativieSuite_5_MNT. Product Version: 1.2.0000. Product Language: 1033. Manufacturer: Adobe Systems Incorporated. Installation success or error status: 1603.
    Please let me how to install 64 bit package on Win7 64 bit.
    Thanks in Advance.

    Ok so I downloaded the most current installer CS5.1, My previous installer was version 5.0. It did install fine fully updated to my license version. I just wanted to update in case anyone in the future has a similiar experience. Too bad this advice was not offered by the "experts" here.

  • Open and edit PDF document simultaneously in two windows

    I am currently studying on a very long PDF, about 1600 pages. I have two copies of the same PDF open in full screen, and I use the first (A) to read and highlight, and the second (B) to search for images and references. So if I am on page 200 of A, and it refers to an image on page 270, instead of scrolling 70 pages and losing track of where I was I scroll on B.
    That being said, I tend to highlight on both copies, and I would like to have unified highlights and comments. Is there a way to:
    a) merge the comments and highlights after I close both files
    or
    b) instead of having two copies of the same file A and B, open two windows of the same file A and merge modifications

    Adobe Reader won't but Acrobat Pro XI can open the same document in two windows and it updates both as you make changes "on the fly"...
    The downside? $499.
    Acrobat Standard is $299 and I  don't know if it can do the "one doc two window" editing.

Maybe you are looking for

  • HTTP to SOAP scenario

    Hi guys, We have developed an HTTP to SOAP scenario, where XI acts as the WS client in order to call an already published WS. When we are testing the scenario through RWB's interface (Component Monitoring --> Integration Server --> Integration Engine

  • Add button inactive in Match record step in Import manager

    Hello, In the Main table, I want to see the country data as 'US; United States' in country field. I have made both 'country code' and 'country description' as display fields in the country flat lookup table. When I load country code and country descr

  • DB Selects during Mapping

    Hello, during my message mapping i need to call a Database in Order to select dynamically a value for the destination field. I need to know whether Is this possible with message mapping at all, and if so, what are the basic stepts to this <i><b>withi

  • Zwaygi font not displaying in input fields (fine everywhere else)

    I am working on a two language website www.eprpinformation.org. The Myanmar version automatically changes the font family for body text to Zwaygi-One which work wonderfully well on IE, Chrome and Firefox. Except, that is, for input fields. For some r

  • Problem installing downloaded 'Sonata std medium' font on Win7

    I have downloaded the Sonata font from Adobe Shop, unzipped it, right clicked on SonataStd.oft and installed it, but it isn't working or showing as a music font. I looked at the properties, clicked the 'unblock' option, but it made no difference. I a