[[https://www.revelation.com/|Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community]] ==== Problem (OpenInsight Specific) ==== === At 16 MAY 1999 02:44:55AM Barry Stevens wrote: === {{tag>"OpenInsight Specific"}} I have a program that check the key being entered in a window and if it is for a different record type then the relevant window is call , being passed the record key and the window opens with the passed record key and the details auto read. The problem is that if I issue post_event "CLOSE" after the new window is called (as above-'start_midichild'), the info on the new window is cleared, the default comes up "NEW", and then the calling window closes. Any ideas as to what could be causing this. Is there another step I have to take. Barry ---- === At 18 MAY 1999 06:02AM Oystein Reigem wrote: === Barry, So you have an MDI frame with a child window A open? But the key the user has entered requires a different child window B? Perhaps you should have some of your programming on the frame instead of doing all in your child windows? Sometimes it's best the grown-ups are in control. What about (1) let A tell the frame what has happened, e.g with MDIFrame=Get_Property( @Window, "MDIFRAME" ) Send_Event( MDIFrame, "OMNIEVENT", "SWITCH", "A", "B" ) (2) have an OMNIEVENT script at the frame that - checks Param1 to see if it is "SWITCH" - in case gets the child window names from Param2 and Param3 - get the key from the first child (A), close it, open the other child (B), put the key into its key field, and tell it to read in the row with a Send_Event( OtherChild, "READ" )? - Oystein - ---- === At 19 MAY 1999 03:51AM Barry Stevens wrote: === What a great idea, I will try that. Thanks Barry [[https://www.revelation.com/revweb/oecgi4p.php/O4W_HANDOFF?DESTN=O4W_RUN_FORM&INQID=NONWORKS_READ&SUMMARY=1&KEY=7CD04DA7A7150F8A852567730025124D|View this thread on the forum...]]