Re: Forms Stop Receiving Certain Events

2018-11-11 Thread Sandor Szatmari via 4D_Tech


 From:   Sandor Szatmari  
 To:   4D iNug Technical <4d_tech@lists.4d.com> 
 Cc:   Tim Nevels  
 Sent:   11/11/2018 9:57 AM 
 Subject:   Re: Forms Stop Receiving Certain Events 



 From:   Tim Nevels via 4D_Tech <4d_tech@lists.4d.com> 
 To:   <4d_tech@lists.4d.com> 
 Cc:   Tim Nevels  
 Sent:   11/9/2018 11:04 AM 
 Subject:   Re: Forms Stop Receiving Certain Events 

On Nov 9, 2018, at 9:47 AM, Sandor Szatmari wrote:

> I’m glad to learn that.  However, the way our backups are configured I only 
> see 4BL (the log) and and 4BK (the data) files.  Looks like I need to learn 
> more about the backup configuration process.  What is the recommended way to 
> configure backups so that I would have access to these individual files?  Or, 
> are they accessible individually during the restore process from the 4BK 
> file?  Also, if there is any good reading on this you could point me too, 
> It’d be appreciated.  Thanks for your response, very helpful indeed!








Sorry, forgive the previous errant send... here's the complete post:


I followed the path within the database's preferences and the checkbox for 
"Structure File" is checked off.  However, the only files produced by 4D during 
the backup process are the 4BL and 4BK files.  My only thought is that the 4BK 
file contains the structure file.  We are running v15 R5 but the database 
itself has been around for a very long time;  15+ years.  Perhaps this is 
legacy behavior that is due to database's age/history?

I will try experimenting with a restore on an offline machine.  If I am missing 
the structure file and can't restore that would be a problem.  I seriously 
don't think there's a problem.  We have restored to offline machines for 
testing in the past but that was many software releases ago.

Any thoughts are appreciated.


Sandor Szatmari


















Senior Software Developer
Bristol Capital Inc. - InfoPlus
201 746 7215
www.infoplusonline.com





There is a checkbox in Backup -> Configuration called “Structure File”. Check 
that box and it will backup the .4DB file. You might also consider adding to 
the “Attachments” area the .4Dindy file, “Components” folder, “Plugins” folder, 
and “Resources” folder to the backup. That gives you a complete snapshot of 
what it takes to restore a 4D structure file. You need all these pieces.

Tim

*
Tim Nevels
Innovative Solutions
785-749-3444
timnev...@mac.com
*

**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.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:4d_tech-unsubscr...@lists.4d.com
**

Re: Forms Stop Receiving Certain Events

2018-11-11 Thread Sandor Szatmari via 4D_Tech


 From:   Tim Nevels via 4D_Tech <4d_tech@lists.4d.com> 
 To:   <4d_tech@lists.4d.com> 
 Cc:   Tim Nevels  
 Sent:   11/9/2018 11:04 AM 
 Subject:   Re: Forms Stop Receiving Certain Events 

On Nov 9, 2018, at 9:47 AM, Sandor Szatmari wrote:

> I’m glad to learn that.  However, the way our backups are configured I only 
> see 4BL (the log) and and 4BK (the data) files.  Looks like I need to learn 
> more about the backup configuration process.  What is the recommended way to 
> configure backups so that I would have access to these individual files?  Or, 
> are they accessible individually during the restore process from the 4BK 
> file?  Also, if there is any good reading on this you could point me too, 
> It’d be appreciated.  Thanks for your response, very helpful indeed!





I followed the path within the database's preferences and the checkbox for 
"Structure File" is checked off.  However, the only files produced by 4D during 
the backup process are the 4BL and 4BK files.  My only thought is that the 4BK 
file contains the structure file.  We are running v15 R5 but the database 
itself has been around for a very long time;  15+ years.  Perhaps this is 
legacy behavior that is due to database's age/history?


I will try experimenting with a restore on an offline machine.  If I am missing 
the structure file and can't restore that would be a problem.  I seriously 
don't think there's a problem.  We have restored to offline machines for 
testing in the past but that was many software releases ago.


Any




There is a checkbox in Backup -> Configuration called “Structure File”. Check 
that box and it will backup the .4DB file. You might also consider adding to 
the “Attachments” area the .4Dindy file, “Components” folder, “Plugins” folder, 
and “Resources” folder to the backup. That gives you a complete snapshot of 
what it takes to restore a 4D structure file. You need all these pieces.

Tim

*
Tim Nevels
Innovative Solutions
785-749-3444
timnev...@mac.com
*

**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.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:4d_tech-unsubscr...@lists.4d.com
**

Re: Forms Stop Receiving Certain Events

2018-11-09 Thread Tim Nevels via 4D_Tech
On Nov 9, 2018, at 9:47 AM, Chip Scheide wrote:

> Other then having added tables and/or fields, rolling back the 
> structure to a previous one (say yesterday) is simple and is not a 
> significant issue.
> 
> If you have added fields and/or tables then there can be issues, 
> however, I am not well versed in this part of a roll back. I know that 
> if you simply changed one field type to another, with no other change 
> to the tables, this type of change is also NOT an issue to roll back.

4D is very forgiving when dealing with a data file that does not exactly match 
a structure file. If the data file has fields in a table, and your structure 
file does not have those fields, as long as you don’t load and save a record in 
that table, the data in the fields is safe. 

As soon as you load a record from the data file, 4D will compare it to the 
structure definition for the table. Any fields not defined in the structure 
file are ignored. Any fields that have a different type (like Alpha in the data 
file and Longint in the structure file) will automatically be converted as best 
as 4D can to the type that the structure file defines. If you then SAVE RECORD 
that record back to the data file you get all these changes. Unknown field’s 
data is lost, different field types are written back to the data file based on 
the structure file type. 

As far as a table in the data file that is not defined in the structure file, 
it also survives. You can’t access the table because it does not exist in the 
structure file. But the data stays in the data file. It’s basically orphaned. 
But, if you were to take that same data file and open it up with another 
structure file that does have that table defined, then the data is still there 
and accessible again. 

That’s the basics. I don’t know of any other database system that implements 
data files, records and field type changes the way 4D does. It really is a 
beautiful thing when you have a system that is changing and you are moving 
around between different versions. The trade off to this “beautiful” system, is 
performance. It takes extra time with every record load to do the 
field-by-field comparison and data type conversion if necessary. But with the 
hardware of today, it’s really a non-issue. No noticeable performance penalty.  
In the 4D world, any performance tradeoff is easily accepted for the benefits 
it can provide.

Tim

*
Tim Nevels
Innovative Solutions
785-749-3444
timnev...@mac.com
*

**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Forms Stop Receiving Certain Events

2018-11-09 Thread Chip Scheide via 4D_Tech
the configuration is pretty simple.

Open the database, go to:
Database settings : Backup : Configure
turn on the check box(es) you want to be backed up and add any 
additional file(s) you want
set your destination, and schedule.

the .4BK file obtains whatever is supposed to be backed up.
The 4BL is a log file, and I assume tells 4D what is supposed to be in 
the 4BK film and how large.

To restore:
Open 4D 
Fiel menu : Restore
Select 4BK to restore, and select a destination
wait

if, as default, structure and data are included you will have a 
functional database, and structure.

As for reading -- the documentation  RTFM  :)
not that I do  :)

Chip



On Fri, 9 Nov 2018 10:47:07 -0500, Sandor Szatmari wrote:
> I’m glad to learn that.  However, the way our backups are configured 
> I only see 4BL (the log) and and 4BK (the data) files.  Looks like I 
> need to learn more about the backup configuration process.  What is 
> the recommended way to configure backups so that I would have access 
> to these individual files?  Or, are they accessible individually 
> during the restore process from the 4BK file?  Also, if there is any 
> good reading on this you could point me too, It’d be appreciated.  
> Thanks for your response, very helpful indeed!
> 
> Sandor Szatmari
> 
>> On Nov 9, 2018, at 10:08, Chip Scheide <4d_o...@pghrepository.org> wrote:
>> 
>> depending on what your form method looks like, it does not hurt (much) 
>> to simply turn everything on.
>> Chip
>>> On Fri, 9 Nov 2018 09:24:16 -0500, Sandor Szatmari via 4D_Tech 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 <4d_tech@lists.4d.com> 
>>> To:   <4d_tech@lists.4d.com> 
>>> Cc:   Sandor Szatmari  
>>> 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) 
>>>  

Re: Forms Stop Receiving Certain Events

2018-11-09 Thread Tim Nevels via 4D_Tech
On Nov 9, 2018, at 9:47 AM, Sandor Szatmari wrote:

> I’m glad to learn that.  However, the way our backups are configured I only 
> see 4BL (the log) and and 4BK (the data) files.  Looks like I need to learn 
> more about the backup configuration process.  What is the recommended way to 
> configure backups so that I would have access to these individual files?  Or, 
> are they accessible individually during the restore process from the 4BK 
> file?  Also, if there is any good reading on this you could point me too, 
> It’d be appreciated.  Thanks for your response, very helpful indeed!

There is a checkbox in Backup -> Configuration called “Structure File”. Check 
that box and it will backup the .4DB file. You might also consider adding to 
the “Attachments” area the .4Dindy file, “Components” folder, “Plugins” folder, 
and “Resources” folder to the backup. That gives you a complete snapshot of 
what it takes to restore a 4D structure file. You need all these pieces.

Tim

*
Tim Nevels
Innovative Solutions
785-749-3444
timnev...@mac.com
*

**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Forms Stop Receiving Certain Events

2018-11-09 Thread Sandor Szatmari via 4D_Tech
Makes sense, thanks again!

Sandor Szatmari

> On Nov 9, 2018, at 10:08, Chip Scheide <4d_o...@pghrepository.org> wrote:
> 
> depending on what your form method looks like, it does not hurt (much) 
> to simply turn everything on.
> Chip
>> On Fri, 9 Nov 2018 09:24:16 -0500, Sandor Szatmari via 4D_Tech 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 <4d_tech@lists.4d.com> 
>> To:   <4d_tech@lists.4d.com> 
>> Cc:   Sandor Szatmari  
>> 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.
>> **

Re: Forms Stop Receiving Certain Events

2018-11-09 Thread Sandor Szatmari via 4D_Tech
I’m glad to learn that.  However, the way our backups are configured I only see 
4BL (the log) and and 4BK (the data) files.  Looks like I need to learn more 
about the backup configuration process.  What is the recommended way to 
configure backups so that I would have access to these individual files?  Or, 
are they accessible individually during the restore process from the 4BK file?  
Also, if there is any good reading on this you could point me too, It’d be 
appreciated.  Thanks for your response, very helpful indeed!

Sandor Szatmari

> On Nov 9, 2018, at 10:08, Chip Scheide <4d_o...@pghrepository.org> wrote:
> 
> depending on what your form method looks like, it does not hurt (much) 
> to simply turn everything on.
> Chip
>> On Fri, 9 Nov 2018 09:24:16 -0500, Sandor Szatmari via 4D_Tech 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 <4d_tech@lists.4d.com> 
>> To:   <4d_tech@lists.4d.com> 
>> Cc:   Sandor Szatmari  
>> 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 
>&

Re: Forms Stop Receiving Certain Events

2018-11-09 Thread Chip Scheide via 4D_Tech
Krik,

I just checked, and On Clicked and buttons does work regardless of form 
event, but I think this depends on the event. I know some events, like 
On Timer, On Before/after Keystroke will not work if the form event is 
not checked at the form level.

Chip

On Fri, 9 Nov 2018 06:57:15 -0800, Kirk Brooks via 4D_Tech wrote:
> 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 <
> 4d_tech@lists.4d.com> 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 <4d_tech@lists.4d.com>
>>  To:   <4d_tech@lists.4d.com>
>>  Cc:   Sandor Szatmari 
>>  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
>> prohibit

Re: Forms Stop Receiving Certain Events

2018-11-09 Thread Chip Scheide via 4D_Tech
depending on what your form method looks like, it does not hurt (much) 
to simply turn everything on.
Chip
On Fri, 9 Nov 2018 09:24:16 -0500, Sandor Szatmari via 4D_Tech 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 <4d_tech@lists.4d.com> 
>  To:   <4d_tech@lists.4d.com> 
>  Cc:   Sandor Szatmari  
>  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:4d_tech-unsubscr...@lists.4d.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 

Re: Forms Stop Receiving Certain Events

2018-11-09 Thread Chip Scheide via 4D_Tech
this is not correct.
The structure (.4DB) is a separate entity from the data (.4DD)

Other then having added tables and/or fields, rolling back the 
structure to a previous one (say yesterday) is simple and is not a 
significant issue.

If you have added fields and/or tables then there can be issues, 
however, I am not well versed in this part of a roll back. I know that 
if you simply changed one field type to another, with no other change 
to the tables, this type of change is also NOT an issue to roll back.

To the problem of not responding, I have seen 2 things with this.
- something inside 4D has simply gotten FUBAR(tm) and a restart of the 
program (4D & database) will resolve it
- there are 1 or more in obvious interface objects interfering with the 
expected behavior of your form.
ex: you have a (supposed) back ground object as part of the form 
appearance (say a box with no fill) and this box has "moved" to the 
foreground. The box then receives all the interface actions (clicks 
etc.) and the intended entry objects (buttons for example) do not 
appear to function.
Summary - check your 'Z' stacking of objects.

On Fri, 9 Nov 2018 00:18:13 -0500, Sandor Szatmari via 4D_Tech wrote:
> I am under the impression that you cannot roll back the interface 
> programming separately from the actual data.
---
Gas is for washing parts
Alcohol is for drinkin'
Nitromethane is for racing 
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Forms Stop Receiving Certain Events

2018-11-09 Thread Kirk Brooks via 4D_Tech
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 <
4d_tech@lists.4d.com> 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 <4d_tech@lists.4d.com>
>  To:   <4d_tech@lists.4d.com>
>  Cc:   Sandor Szatmari 
>  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:4d_tech-unsubscr...@lists.4d.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 inform

Re: Forms Stop Receiving Certain Events

2018-11-09 Thread Sandor Szatmari via 4D_Tech
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 <4d_tech@lists.4d.com> 
 To:   <4d_tech@lists.4d.com> 
 Cc:   Sandor Szatmari  
 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:4d_tech-unsubscr...@lists.4d.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:4d_tech-unsubscr...@lists.4d.com
**

Forms Stop Receiving Certain Events

2018-11-08 Thread Sandor Szatmari via 4D_Tech
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:4d_tech-unsubscr...@lists.4d.com
**