Subwindows - $event
Michael Mantkowski
michaelj at clientrax.com
Tue Jul 11 11:32:19 EDT 2017
That actually works... Thanks..
*********************************************************************
Michael Mantkowski
ClienTrax Software
1-614-875-2245
*********************************************************************
-----Original Message-----
From: omnisdev-en [mailto:omnisdev-en-bounces at lists.omnis-dev.com] On Behalf
Of Mayada Al-Kishtini
Sent: Tuesday, July 11, 2017 10:48 AM
To: 'OmnisDev List - English' <omnisdev-en at lists.omnis-dev.com>
Subject: RE: Subwindows - $event
Hi Michael,
Try to set a reference to the subwindow
Set reference iSubWinRef to $cinst.objs.pagepaneobj.$objs.mysubwindowobjname
Then try iSubWinRef.$test
See if that will work with you.
HTH,
Mayada
-----Original Message-----
From: omnisdev-en [mailto:omnisdev-en-bounces at lists.omnis-dev.com] On Behalf
Of Michael Mantkowski
Sent: Tuesday, July 11, 2017 10:33 AM
To: 'OmnisDev List - English'
Subject: Subwindows - $event
I am getting my brain into an endless loop here. I have never tried to use
a Subwindow in the way I am right now and maybe it's just is wrong...
Assume you have a Normal Window that operates just fine with its own $event
and $control methods. The $event picks up on evOk or evCancel to direct the
flow of data entry to add lines to an invoice. Press ok and the contents of
the entry fields are added to the list. Etc.
If I now use this window class as a subwindow the evOk and evCancel are
picked up by the parent window. What is the best method to pass this back
to the original window methods $event that are now encased in the subwindow?
Or is there no way to that since the SubWindow field itself can have a
$event?
The objects within the subwindow are able to call the original windows
methods but I cannot seem to find a way to reference them from the parent
window.
Do $cinst.$objs.$SubWindow.$test ;gives me an error
However, clicking a button in the subwindow that does
Do method $test ; works fine
I feel like I am missing something simple.
*********************************************************************
Michael Mantkowski
ClienTrax Software
1-614-875-2245
*********************************************************************
_____________________________________________________________
Manage your list subscriptions at http://lists.omnis-dev.com
_____________________________________________________________
Manage your list subscriptions at http://lists.omnis-dev.com
More information about the omnisdev-en
mailing list