Re: Multple windows within the same process

2020-04-30 Thread Jeffrey Kain via 4D_Tech
A lot more scalable too - one server process per client dedicated to the UI, no 
matter how many windows are open locally...

> On Apr 29, 2020, at 11:52 PM, Kirk Brooks via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Where workers come in is to do, well - work. All the heavy processing be it
> lookups, calculations, whatever can be done by workers and just the results
> are pass back to the form that initiated them. It's a really different way
> of thinking about building your forms.

**
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: Multple windows within the same process

2020-04-29 Thread Kirk Brooks via 4D_Tech
Pat,
To expand a little on the other comments for you to be able to _keep_
windows open when you use the * they must be opened from an existing
window. Otherwise they pop open and then close again. Another difference is
when you call

DIALOG("myForm";*)

the method doesn't stop with DIALOG. It keep going. So you don't want to
use this for something where you want to wait for the user input.

This suggests a toolbar sort of approach to the UI where you open a window
that is intended to remain open. Or that these subsidiary windows be
thematically linked to the main window. For instance, I have a database
that allows 3 different windows to call a parser for importing data.
The parser opens in the process shared by those 3 windows.  When you close
the root window, or otherwise end the process, all windows open in that
process close as well.

The suggestion I've picked up is to look at defining a single process as
the UI process and opening most, or all, the windows users interact with in
that process. In this context a process variable becomes like an IP var has
been - available to all the windows. But with CALL FORM you don't even need
to think about it that way.

Where workers come in is to do, well - work. All the heavy processing be it
lookups, calculations, whatever can be done by workers and just the results
are pass back to the form that initiated them. It's a really different way
of thinking about building your forms.

On Wed, Apr 29, 2020 at 4:17 PM Pat Bensky via 4D_Tech <4d_tech@lists.4d.com>
wrote:

> Maybe it was in a dream ... but I'm sure I recall reading something about a
> new feature (v17) that allows more than one window to be open within a
> process. But now I can't find that info. Did I imagine it?
> Pat
>
> --
> *
> CatBase - Top Dog in Data Publishing
> tel: +44 (0) 207 118 7889
> w: http://www.catbase.com
> skype: pat.bensky
> *
> **
> 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
> **



-- 
Kirk Brooks
San Francisco, CA
==
**
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: Multple windows within the same process

2020-04-29 Thread Douglas von Roeder via 4D_Tech
Pat:

The asterisk was added to the Dialog command in V12. That was all well and
good but the developer had to get creative to communicate with a given
window within a process because Call process was picked up by the frontmost
window in a process.

The “Call form” command (late V15) allows us to run code in the context of
a given window making it very easy to update specific windows, regardless
of how they were opened. If you’re working in a multi window environment,
it’s easy to do “real time updates” by messaging processes so that they can
refresh the data that they’re displaying.

--
Douglas von Roeder
949-910-4084


On Wed, Apr 29, 2020 at 4:19 PM Chuck Miller via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> workers
>
>
> 
>  Chuck Miller Voice: (617) 739-0306
>  Informed Solutions, Inc. Fax: (617) 232-1064
>  mailto:cjmillerinformed-solutions.com
>  Brookline, MA 02446 USA Registered 4D Developer
>Providers of 4D and Sybase connectivity
>   http://www.informed-solutions.com
>
> 
> This message and any attached documents contain information which may be
> confidential, subject to privilege or exempt from disclosure under
> applicable law.  These materials are intended only for the use of the
> intended recipient. If you are not the intended recipient of this
> transmission, you are hereby notified that any distribution, disclosure,
> printing, copying, storage, modification or the taking of any action in
> reliance upon this transmission is strictly prohibited.  Delivery of this
> message to any person other than the intended recipient shall not
> compromise or waive such confidentiality, privilege or exemption from
> disclosure as to this communication.
>
> > On Apr 29, 2020, at 7:17 PM, Pat Bensky via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:
> >
> > Maybe it was in a dream ... but I'm sure I recall reading something
> about a
> > new feature (v17) that allows more than one window to be open within a
> > process. But now I can't find that info. Did I imagine it?
> > Pat
>
> **
> 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
> **
**
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: Multple windows within the same process

2020-04-29 Thread Chuck Miller via 4D_Tech
workers


 Chuck Miller Voice: (617) 739-0306
 Informed Solutions, Inc. Fax: (617) 232-1064   
 mailto:cjmillerinformed-solutions.com 
 Brookline, MA 02446 USA Registered 4D Developer
   Providers of 4D and Sybase connectivity
  http://www.informed-solutions.com  

This message and any attached documents contain information which may be 
confidential, subject to privilege or exempt from disclosure under applicable 
law.  These materials are intended only for the use of the intended recipient. 
If you are not the intended recipient of this transmission, you are hereby 
notified that any distribution, disclosure, printing, copying, storage, 
modification or the taking of any action in reliance upon this transmission is 
strictly prohibited.  Delivery of this message to any person other than the 
intended recipient shall not compromise or waive such confidentiality, 
privilege or exemption from disclosure as to this communication. 

> On Apr 29, 2020, at 7:17 PM, Pat Bensky via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Maybe it was in a dream ... but I'm sure I recall reading something about a
> new feature (v17) that allows more than one window to be open within a
> process. But now I can't find that info. Did I imagine it?
> Pat

**
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: Multple windows within the same process

2020-04-29 Thread Jeffrey Kain via 4D_Tech
DIALOG with the More Power parameter (*)... it's not a dream!

> On Apr 29, 2020, at 7:17 PM, Pat Bensky via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Maybe it was in a dream ... but I'm sure I recall reading something about a
> new feature (v17) that allows more than one window to be open within a
> process. But now I can't find that info. Did I imagine it?
> Pat

**
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
**

Multple windows within the same process

2020-04-29 Thread Pat Bensky via 4D_Tech
Maybe it was in a dream ... but I'm sure I recall reading something about a
new feature (v17) that allows more than one window to be open within a
process. But now I can't find that info. Did I imagine it?
Pat

-- 
*
CatBase - Top Dog in Data Publishing
tel: +44 (0) 207 118 7889
w: http://www.catbase.com
skype: pat.bensky
*
**
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
**