Chris: Absolutely there is a need for them. We use them extensively. I had not really thought of them as form events, but more of an event generating a request from somewhere else, or within the form. I am working on some form events right now.
Prior to Objects in the language, the plugin Object Tools was the way to accomplish this. Prior to Object Tools, we had to write text files to disk (yuk!). The challenge has always been how to manage this. We use objects to do this now, and where we use workers we use the call Form command. Personally I really like the objects to manage this. I like this as: 1. they are global (on the workstation), 2. we can easily see what is happening (we have a custom object viewer we can see the object contents even in compiled mode). 3. they can be created and discarded easily, and easily cleaned up the way we have ours. They die when the process dies. You need to create an object for this, have strict rules for naming, ensure you wipe them out when done, and they should be wiped out when the processes is done. Generic methods that look after all of this is the way to go. Generic methods that look after all of this so you do not really have to think about it when coding. Hope this helps. It is how we accomplish this. Jody Bevan > On Apr 23, 2019, at 8:32 AM, Chris Belanger via 4D_Tech > <[email protected]> wrote: > > I am wondering if there is a way to configure Custom Form Events. I would > like to be able to post a form event, and have it then processed within the > FORM METHOD as such. > I am doing a lot of work in “Orda context” right now and can think of some > handy features that could be implemented in that way, especially with keeping > the number of project methods down (as code could be put into a script > instead). > Before you think “why would he want to do that?” — please just focus on the > question of ‘can I?’. :) > > In the past, I used the form event “on Outside Call” stuff to handle > communications between processes, so I understand all that stuff. > > I remember — but cannot find again — some documentation that talked about > using negative-numbered values for events to facilitate custom events. > However, I seem to remember it only was in the context of subforms. > > Any help or direction you could provide would be most appreciated! > Thanks — Chris > ********************************************************************** > 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] > ********************************************************************** ********************************************************************** 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] **********************************************************************

