Re: Fastest Feature Request Implementation Ever

2018-06-28 Thread Cannon Smith via 4D_Tech
Hi Kirk,

Thanks for the heads up. I’ll look for it.

--
Cannon.Smith
Synergy Farm Solutions Inc.
Hill Spring, AB Canada
403-626-3236




> On Jun 28, 2018, at 6:37 PM, Kirk Brooks via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> There's a blog post and demo that's worth a look if you haven't already.

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

Fastest Feature Request Implementation Ever

2018-06-28 Thread Cannon Smith via 4D_Tech
Some of you may know that I use a mechanism in my windows where each window and 
widget on the window has its own “model” object. This can be passed into a 
window and then manipulated after the window closes. This logic applies to 
subforms as well and is set up so that when a subform is typed as a C_OBJECT, 
the subform container’s variable is also the subform’s “model” object. This is 
a _really_ handy way to work with subforms while keeping data associated with 
them part of the main window’s model.

Since 4D has implemented the “Form” object, I wanted to switch to using that 
instead of my hacky mechanism. The only problem is that I really wanted it to 
continue working with subforms in the same way as I’ve been doing it in the 
past. So I started to write up a feature request where, if a subform is typed 
as a C_OBJECT, then the subform container variable could be the same reference 
as the Form object from within the context of the subform.

As I was doing that I needed to double-check something about Form in the 
documentation and guess what? I found that 4D had already implemented Form in a 
subform context exactly as I was going to request! Fastest implementation of a 
feature request ever!

Thanks 4D. :-)



--
Cannon.Smith
Synergy Farm Solutions Inc.
Hill Spring, AB Canada
403-626-3236




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