When_window_closed can't determine the right parent

I have a problem that the when_window_closed can't determine the right parent in de qms$window.when_window_closed procedure of headstart.
In a form I have two windows. One is the parent window and one is a child window. After doing some changes in my parent window I navigate with a button (go_block) to this child window. When I want to close the child window, the child window thinks it's the last window and asks if I want to save my changes. If I say yes my changes are commited and if I say no both the parent and the child window are closed.
A detail about the child window is: the child window has no key_based_link to the blocks on the parent window. I have a similar form with two windows but in this form the blocks are connect by a key_based_link in that form the child window can determine the parent window and does not ask if it has to save any changes.
My question is: Does anyone know how my child window can determine the parent window, even though it's not connected with a key_based_link to the other block, so that when I close the child window I won't be asked to save any changes? In qms$window.when_window_closed the parent is determined but in this case it returns a null for it's parent.

Some additional information, I checked the code of the when_window_closed
and I see the following:
-- this is part of the code in qms$window.when_window_closed who checks if the child window has a parent
if name_in('system.form_status') = 'CHANGED'
then
-- my parent form has been changed so the form_status is changed and I will enter this part of the code
l_group_id := find_group('CGSH$FORM_OBJECTS');
l_parent_id := find_column('CGSH$FORM_OBJECTS.PARENT_NAME');
l_child_id := find_column('CGSH$FORM_OBJECTS.OBJECT_NAME');
l_count := get_group_row_count(l_group_id);
for i in 1..l_count loop
l_child := get_group_char_cell(l_child_id, i);
if upper(l_child) = upper( get_view_property
( get_item_property
( name_in('system.trigger_item')
, item_canvas
, window_name
then
l_parent := get_group_char_cell(l_parent_id, i);
-- l_parent is null ????? Should be a value, cause it's a child window.
-- the only thing I can determine that de parent is null, is that the child window has
-- no key_based_link with the parent window.
l_last_window := (l_parent is null); -- l_last_window becomes true
exit;
end if;
end loop;
if l_last_window -- is true cause the parent id was null
then
if qms$errors.show_message('QMS-00158')
then -- do you want to commit the change
-- if yes then both my child and parent form are commited which I don't want yet
commit_form;
if name_in('system.form_status') <> 'QUERY'
then
go_block('QMS$TRANS_ERRORS');
raise form_trigger_failure;
end if;
else
-- if no then both my child and parrent form are closed and all the changes are discarded
exit_form(no_validate,full_rollback);
end if; -- show message
end if; -- last window
end if; -- form status 'changed'
How can the child window, have a parent window which is null?
And how can I resolve this problem? So that I have a parent window with a value?

Similar Messages

  • How can I determine the type of video out connector I need?

    Howdy,
    I have a white macbook purchased Jun/2008. I want to connect to a TV but don't know what adapter I need. How can I determine the type of video out jack my macbook has?
    System Profiler says the model identifier is "MacBook 4,1". Under Graphics/Displays the only thing it says about the "Display Connector" is that no display is connected. Too bad it doesn't tell me what type of connector it is. If I knew the name of the connector I'd probably be home free. But it seems like every macbook model has a different video connector (since the state of the art has advanced over the years) and I haven't been able to keep up with the names.
    Now, I have a 6" long adapter that will convert this connector to VGA. And searching the Apple store for VGA adapters, the existence of mine says my connector is might be one of "Mini DisplayPort", "Apple Mini DVI", "Apple DVI", or "Apple Micro-DVI". But then there is also the connector at
    http://store.apple.com/us/product/M8639G/A?mco=MTY3ODQ5OTY
    and that looks like the one I have. But unlike the other adapters, this one is just called a "VGA Display Adapter". Does the connector have a name? How can I find adapters that have that same connector?
    I know I could use the adapter I have, plus a VGA to VGA cable, to hook up to a TV. But the quality of the VGA signal is poor in the digital world. My goal is to hook up to the TV via HDMI. Is this even possible? By which I mean, will my macbook generate the signals necessary to be able to be converted to HDMI?
    Thanks for any help,
    Zebulon T

    Thanks, Ded,
    You're right, the cable that I have won't work. I't from my previous, 2004 iBook. This is pretty embarrassing... I looked at the cable but didn't bother to try plugging it in.
    Looking at the close-up picture of the Mini-DVI to VGA adapter, that does look like the right connector. So I have Mini-DVI, and the other apter you pointed to can convert this to DVI. I'll take a look to see what makes the most sense, connector wise, downstream from that.
    Thanks very much.
    Zeb T

  • How Can I Determine the Size of the 'My Documents' Folder for every user on a local machine using VBScript?

    Hello,
    I am at my wits end into this. Either I am doing it the wrong way or it is not possible.
    Let me explain. I need a vb script for the following scenario:
    1. The script is to run on multiple Windows 7 machines (32-Bit & 64-Bit alike).
    2. These are shared workstation i.e. different users login to these machines from time to time.
    3. The objective of this script is to traverse through each User Profile folder and get the size of the 'My Documents' folder within each User Profile folder. This information is to be written to a
    .CSV file located at C:\Temp directory on the machine.
    4. This script would be pushed to all workstations from SCCM. It would be configured to execute with
    System Rights
    I tried the script detailed at:
    http://blogs.technet.com/b/heyscriptingguy/archive/2005/03/31/how-can-i-determine-the-size-of-the-my-documents-folder.aspx 
    Const MY_DOCUMENTS = &H5&
    Set objFSO = CreateObject("Scripting.FileSystemObject")
    Set objShell = CreateObject("Shell.Application")
    Set objFolder = objShell.Namespace(MY_DOCUMENTS)
    Set objFolderItem = objFolder.Self
    strPath = objFolderItem.Path
    Set objFolder = objFSO.GetFolder(strPath)
    Wscript.Echo objFolder.Size
    The Wscript.Echo objFolder.Size command in the script at the above mentioned link returned the value as
    '0' (zero) for the current logged on user. Although the actual size was like 30 MB or so.
    I then tried the script at:
    http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/Q_27869829.html
    This script returns the correct value but only for the current logged-on user.
    Const blnShowErrors = False
    ' Set up filesystem object for usage
    Set objFSO = CreateObject("Scripting.FileSystemObject")
    Set objShell = CreateObject("WScript.Shell")
    ' Display desired folder sizes
    Wscript.Echo "MyDocuments : " & FormatSize(FindFiles(objFSO.GetFolder(objShell.SpecialFolders("MyDocuments"))))
    ' Recursively tally the size of all files under a folder
    ' Protect against folders or files that are not accessible
    Function FindFiles(objFolder)
    On Error Resume Next
    ' List files
    For Each objFile In objFolder.Files
    On Error Resume Next
    If Err.Number <> 0 Then ShowError "FindFiles:01", objFolder.Path
    On Error Resume Next
    FindFiles = FindFiles + objFile.Size
    If Err.Number <> 0 Then ShowError "FindFiles:02", objFile.Path
    Next
    If Err.Number = 0 Then
    ' Recursively drill down into subfolder
    For Each objSubFolder In objFolder.SubFolders
    On Error Resume Next
    If Err.Number <> 0 Then ShowError "FindFiles:04", objFolder.Path
    FindFiles = FindFiles + FindFiles(objSubFolder)
    If Err.Number <> 0 Then ShowError "FindFiles:05", objSubFolder.Path
    Next
    Else
    ShowError "FindFiles:03", objFolder.Path
    End If
    End Function
    ' Function to format a number into typical size scales
    Function FormatSize(iSize)
    aLabel = Array("bytes", "KB", "MB", "GB", "TB")
    For i = 0 to 4
    If iSize > 1024 Then iSize = iSize / 1024 Else Exit For End If
    Next
    FormatSize = Round(iSize, 2) & " " & aLabel(i)
    End Function
    Sub ShowError(strLocation, strMessage)
    If blnShowErrors Then
    WScript.StdErr.WriteLine "==> ERROR at [" & strLocation & "]"
    WScript.StdErr.WriteLine " Number:[" & Err.Number & "], Source:[" & Err.Source & "], Desc:[" & Err.Description & "]"
    WScript.StdErr.WriteLine " " & strMessage
    Err.Clear
    End If
    End Sub
    The only part pending, is to achieve this for the 'My Documents' folder within each User Profile folder.
    Is this possible?
    Please help.

    Here are a bunch of scripts to get folder size under all circumstances.  Take your pick.
    https://gallery.technet.microsoft.com/scriptcenter/site/search?query=get%20folder%20size&f%5B0%5D.Value=get%20folder%20size&f%5B0%5D.Type=SearchText&ac=2
    ¯\_(ツ)_/¯

  • Can't locate the right iPhoto Library

    I have a friend who can't find the right iPhoto Library.  Mac OS X 10.7 or 8...  latest iPhoto.  Searching in Finder for "iPhoto Library" produces no results, even though we see an iPhoto Library item in her Pictures folder (not the right one).
    So this leads me to believe that for some reason Finder won't display that....not sure why it would do that...but anyway.  She's a professional photographer, and doesn't know the name of most of the photos, because they are photos name by the camera.  She tried to find some with just the .jpg extension but everything was email or web based results that we found.  Thousands upon thousands.  This has happened before, and it was fixed, but we can't remember how. 
    Any help on how to locate the right version would be great.  Also, her Time Machine only seems to have the same one as in Pictures.  I think the iPhoto Library she uses is located somewhre else on the drive. 
    I also tried Locate and Find in the terminal, but neither brought up anything.
    Thanks in advance.

    Download and use  Find Any File to search for "Library6.iPhoto" which is a file in every iPhoto Library.  If there's another library on your hard drive FAF will find it as it can search areas that Spotlight can't.
    OT

  • I have a iphone 4s with ios 8.3 and I used to be able to sync only a week or two of emails from outlook email.  Now it won't let me do that and it syncs all my inbox.  How can I change it back to sync less.  I can't find the right place.

    I have a iphone 4s with ios 8.3 and I used to be able to sync only a week or two of emails from outlook email.  Now it won't let me do that and it syncs all my inbox.  How can I change it back to sync less.  I can't find the right place.

    I understand, as that was the place I would change it before 8.3 but now that option of Mail Days to Sync is not available?  Any idea why that would be?

  • HT4539 I have 2 year old I-phone 4 that has never been updated. I need to download an update from my computer but can not find the right place on the I-Tunes page. Do you know where is the right place to update a phone that does not have an "update" butto

    My (old, never updated) I-phone has no "update" button in Settings and I would like to update it. I can not find the right place on I-Tunes to download the updates. Do you know where to look?

    Update your iPhone, iPad, or iPod touch - Support - Apple

  • How to determine the right PR Release strategy

    Hi Experts,
    Could u help me to solve this problem!
    As our business, we want the system automatically determine the right Release Strategy based on the total Amount(amt) of PR such as
    - if PR total amt <= 1000 USD --> must  checked by only Department Manager (DM)
    - if PR total amt >1000 USD --> must checked by  Department Manager (DM) and General Director (GD) 
    so i've already configured system like that:
    1. Create characteristic : CEBAN_GSWRT (Structure CEBAN ; Field GSWRT)
    2. create anew Class CEBAN_GSWRT, which associated with above Characteristic
    3. Create release Group "03", which associated with above Class (CEBAN_GSWRT) and cheked "Overall Release PR"
    4. Create Release Code DM ; GD
    5. Create two Release Strategy such as:
      5.1.  Strategy 01 - DM Only, which have only DM release code & assigned to class  CEBAN_GSWRT and the value identified here is <=1000 USD
    5.2  Strategy 02 - DM -GD , which have DM & GD release code & assigned to class  CEBAN_GSWRT and the value identified here is >1000 USD
    then, i created two PRs, one have amt <1000 USD , another >1000 USD, but the system alway get the same Release Strategy 01,its mean that system allway apply the first case Amt of PR <1000 USD.
    Note: In the Document Type i checked Overall Release also!
    So, pls help me to show out wrong or missing steps!
    Thanks in advance
    Vietttq.
    Edited by: viettq on Sep 1, 2009 4:32 AM

    Hi,
    Please open the below link, it will help you to understand the complete step by step  process:
    http://www.sap123.com/showthread.php?t=59

  • How can I determine the number and sizes of redologs?

    Dear all,
    How can I determine the number and sizes of redologs are sufficient to allow redo log switching while hot backup is in progress?
    Please advice,
    Amy

    Two questions here - what the OP put as the subject title and what was asked in the thread, which are different questions.
    I would interpret the question in the thread to mean "how to avoid hanging due to archiving waiting for a redo log group to become available." Alert log, wait events, and user complaints would be the source of information here.

  • How can I get the right click to work in firefox -- it works in internet explorer

    how can I get the right click to work in firefox -- it works in interne

    Try the Firefox SafeMode to see how it works there. <br />
    ''A troubleshooting mode, which disables most Add-ons.'' <br />
    ''(If you're not using it, switch to the Default Theme.)''
    * You can open the Firefox 4/5/6/7 SafeMode by holding the '''Shft''' key when you use the Firefox desktop or Start menu shortcut.
    * Or use the Help menu item, click on '''Restart with Add-ons Disabled...''' while Firefox is running. <br />
    ''Don't select anything right now, just use "Continue in SafeMode."''
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before using the Firefox shortcut (without the Shft key) to open it again.''
    If it is good in the Firefox SafeMode, your problem is probably caused by an extension, and you need to figure out which one. <br />
    http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes

  • So Can I determine the business partners linked to user based on the assigned role and org. structure?

    Hello, I am working on a SAP CRM 7 Sales implementation and we are implementing leads and opportunity scenarios. The current business organization model is that there multiple vertical and horizontal departments. This is typical matrix structure. This organization has done the segregation of its clients based on the verticals so every clients belongs to at least one or more Vertical department but Horizontal departments can contact all the clients. In the same way sales executives are also either belonging to one or more Verticals or Horizontal departments? Horizontal sales executive can create leads for any clients available in the system but a Vertical sales executive can only create lead only for the client belongs to his vertical and assigned to him. This can be achieved by creating organization structure and business partner relationship.
    Now the problem statement is that few sales executives need work for both some Verticals and Horizontals at the same time. But requirement is that they should be able to do the both roles with single user id but multiple roles. So when sales executive is creating leads his vertical department, he should only be able to select clients assigned to his Vertical only but when he is creating lead for Horizontal department, he should be able to select any clients.
    So Can I determine the business partners linked to user based on the assigned role and org. structure?
    Please let me know if this is not clear also  note we are only using CRM WebUI no SAP ePortal.
    Thanks a lot your help in advance.
    Regards
    Sudesh Sharma

    Thanks, Tahir
    my problem has solved
    Kind Regards,
    Faisal

  • Where can I find the right LIB_DBSL.SAR??

    hi all,
        I want to connect to the other DBMS.The detail is: my BI application server DBMS is oracle, it  runs on linux,64 bit,and the target DBMS is MSS 2000.
        The question is where can I  find the right LIB_DBSL.SAR,could you give me a link address?
        Thx..

    Hi,
    You need to log in to  service marketplacewith S userID& password. After logging into SMP, we need to find the relevant Database to find the Shared libraries that is LIB_DBSL.SAR file & then need to unarchive in order to load the DB dependent shared libraries.
    Regards
    Venkat

  • Can't determine the role of_. The group Adminsitrators could not be found.

    WebCenter Content logs:
    Warning,
    can not determine the role of guest privileges. The group Adminsitrators could not be found. The exception error type 'java.lang.Throwable'. [Details]Content Server has generated a diagnostic warning. The following stack trace can display detailed information.
    Another two warnings, the difference is that the guest replaced by admin, sysmanager.

    What is the final destination of the download?
    Firefox usually initially download the file first to the temp folder whole you enter the destination location and later tries to copy the file and possibly includes the permissions of the file in the temp folder.
    It is possible that anti-virus software is corrupting downloaded files or is otherwise interfering with downloading files.
    See:
    *http://kb.mozillazine.org/Unable_to_save_or_download_files
    *browser.download.manager.scanWhenDone

  • How can I know the right component for a transaction?

    Hi, I have a question
    When creating a new message in Solution Manager, notif_create, how can I know the right component given the transaction code or program name?
    Thanks in advance
    Edited by: María Valdés on Aug 19, 2008 6:25 PM

    Hello Maria,
    Well, in the Support Message window, place the cursor in Component box and press F4. This will brings up another window which contains the components list to which you are authorized. From that list you can choose about which component you want to create that particular support message.
    For example, if you are from Quality department, the following can be visible when you press F4.
    QM - Quality Management
      -- QM-ADB Adobe Forms
           -- QM-ADB-PRN Print Forms
      For the Print Forms, the component will be QM-ADB-PRN
    I hope it helps.
    Cheers,
    Satish.

  • HT3486 My Airport 6.1 can't manage my base station. I need to use AirPort Utility 5.6 but i can't find the right. I've download several but it always give me the same message: Airport uti....can't be installed... The version of OS X on this version is not

    My Airport 6.1 can't manage my base station. I need to use AirPort Utility 5.6 but i can't find the right download. I've been downloading several but it always after havingf instal the first 3 steps the same message: Airport utility....can't be installed... The version of OS X on this version
    doesn't support this base station...
    I need help please to find the correcte download so i can my wii-fii work as soon as possible (because my wife is making me crazy, she can't go on Facebook!!!! )
    Thank's for your help,
    Mike

    Use AirPort Utility 5.6 which contains the features you need. It is compatible with Lion as well as Mountain Lion, however, the installer app will refuse to install it on Mountain Lion.
    This dilemma is easily solved though. You simply need to extract the app from the installer package using a package extractor like Pacifist.
    Download Pacifist here: http://www.charlessoft.com/
    Download AirPort Utility 5.6 here: http://support.apple.com/kb/DL1482
    If you happen to have an archived copy of the AU 5.6 app somewhere, such as a Time Machine backup or equivalent, you can simply restore it or drag the app to your Mountain Lion system's Utilities folder. It will run without complaint. It is only the package installer that is the problem.
    Mountain Lion will not allow you to delete its existing version of AirPort Utility. Just ignore it. It and the older version (which will bear the unique name "AirPort Utility 5.6") can peacefully coexist.
    Note: For those with Leopard or Snow Leopard systems you need AirPort Utility 5.6.1 (this is confusing - a later AirPort Utility version for an earlier OS X version - but it is correct).
    Download AirPort Utility 5.6.1 here: http://support.apple.com/kb/DL1536

  • HT2216 I am on OSX 10.7.5 and recently had to reinstall it due to 'mail' not working correctly.  That problem was resolved but now my I can't use the 'right click' function on the apple usb mouse.  Any clues?

    I am on OSX 10.7.5 and recently had to reinstall it due to 'mail' not working correctly.  That problem was resolved but now my I can't use the 'right click' function on the apple usb mouse.  I only have a previous version re-install disc as I bought the latest OSX off the app store.  Any help gratefully received?

    Hmmm, no, no drivers needed, now it sounds like a bad install... unless you might have some old Mouse software installed???
    If 10.7.0 or later...
    Bootup holding CMD+r, or the Option/alt key to boot from the Restore partition & use Disk Utility from there to Repair the Disk, then Repair Permissions.
    If that doesn't help Reinstall the OS.

Maybe you are looking for