Hi Sandor,
Form object form events are not linked to the form's events. So the events
a button responds to aren't limited by what the form does.

If the button is invisible, perhaps disabled - I have never tried - it
won't execute until it's visible. So a button that's invisible to start
will never run On load because a button's On load runs before the Form's On
load event.


On Fri, Nov 9, 2018 at 6:24 AM Sandor Szatmari via 4D_Tech <
[email protected]> wrote:

> OK, so it looks like there's some strange bug I ran into.  For some reason
> most of the events for my forms got disabled at the form level.  So, even
> though they were checked off at the element level the form was not
> registered for those events anymore.  I am going to have to go through all
> the UI elements and look though their event handling code to make sure all
> the correct events are registered at the form level.
>
>
> Has anyone heard of this before?  If anyone knows of a way to best
> determine the previous state of the form event configuration any thoughts
> would be appreciated.
>
> Thanks,
> Sandor Szatmari
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> Senior Software Developer
> Bristol Capital Inc. - InfoPlus
> 201 746 7215
> www.infoplusonline.com
>
>
>
>  From:   Sandor Szatmari via 4D_Tech <[email protected]>
>  To:   <[email protected]>
>  Cc:   Sandor Szatmari <[email protected]>
>  Sent:   11/9/2018 12:18 AM
>  Subject:   Forms Stop Receiving Certain Events
>
> Has this ever happened to anyone?  UI Elements on certain forms appear to
> have stopped receiving certain events.  This form and related code that
> have been functioning for many many years.  I was adding an additional page
> to the form when this started happening.  I did not edit or change the code
> or properties on any of the other pages/ui elements.  Any help in tracking
> down the cause would be helpful and greatly appreciated.  I do have backups
> but I don't want to roll back the database because it is an active database
> where data is added every day.  I am under the impression that you cannot
> roll back the interface programming separately from the actual data.  An
> example is below.
>
>
>
>
>
> Platform: MacOSX (10.11.6)
> 4D Version: v15 R5
>
>
> Here's an example…
>
>
> A Popup button, has 'On Load', 'On Clicked' and 'On Unload' enabled in the
> property list (i.e. checked off').
>
>
> The object method for the popup has a case statement for reacting to these
> events. (The rest of the code is removed for brevity)
>
>
>
>
> $TheEvent:=Form event
> Case of
>  : ($TheEvent=On Load)
>
>                  ALERT("Load")
>  : ($TheEvent=On Clicked)
>                ALERT("Clicked")
>  : ($TheEvent=On Unload)
>                ALERT("Unload")
> End case
>
>
> The only alert that is displayed is the unload alert.
>
>
> How can I figure out where this the events are being lost/swallowed.
>
>
> Thanks in advance,
> Sandor Szatmari
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> Senior Software Developer
> Bristol Capital Inc. - InfoPlus
> 201 746 7215
> www.infoplusonline.com
>
> CONFIDENTIALITY NOTICE: This email (and any related attachments) contains
> information from InfoPlus (a service of Bristol Capital, Inc.). It is
> intended only for the addressee and may contain information that is
> confidential and/or otherwise exempt from disclosure under applicable law.
> If you are not the intended recipient or are acting as agent for the
> intended recipient, any use or disclosure of this communication is
> prohibited. If you have received this communication in error, please notify
> us immediately to arrange for the appropriate method of returning or
> disposing of the communication. If our respective Companies have
> confidentiality provisions in effect, this email and the materials
> contained herein are deemed CONFIDENTIAL and should be treated accordingly
> unless expressly provided otherwise.
> **********************************************************************
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:[email protected]
> **********************************************************************
>
> CONFIDENTIALITY NOTICE: This email (and any related attachments) contains
> information from InfoPlus (a service of Bristol Capital, Inc.). It is
> intended only for the addressee and may contain information that is
> confidential and/or otherwise exempt from disclosure under applicable law.
> If you are not the intended recipient or are acting as agent for the
> intended recipient, any use or disclosure of this communication is
> prohibited. If you have received this communication in error, please notify
> us immediately to arrange for the appropriate method of returning or
> disposing of the communication. If our respective Companies have
> confidentiality provisions in effect, this email and the materials
> contained herein are deemed CONFIDENTIAL and should be treated accordingly
> unless expressly provided otherwise.
> **********************************************************************
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:[email protected]
> **********************************************************************



-- 
Kirk Brooks
San Francisco, CA
=======================

*We go vote - they go home*
**********************************************************************
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************

Reply via email to