Re: Sets and the twinned process (Execute on server)

2018-10-17 Thread Kirk Brooks via 4D_Tech
Thanks Arnaud,
That's what I suspected.

On Wed, Oct 17, 2018 at 9:21 AM Arnaud de Montard via 4D_Tech <
4d_tech@lists.4d.com> wrote:

>
> > Le 17 oct. 2018 à 17:58, Kirk Brooks via 4D_Tech <4d_tech@lists.4d.com>
> a écrit :
> >
> > [...] a process set created on the
> > client side is available to a trigger method which runs on the server.
> >
> > I have an EOS method that does some queries and creates a set. I notice
> > that set is visible to the client as well.
>
> EoS method and trigger are executed in the same twin process, see
> "Execution Context" here:
> <
> http://doc.4d.com/4Dv17R2/4D/17-R2.1720/Execute-on-Server-attribute.300-3925945.en.html
> >
> this may explain that.
>
> --
> Arnaud de Montard
>
>
>
> **
> 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
===

*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:4d_tech-unsubscr...@lists.4d.com
**

Re: Sets and the twinned process (Execute on server)

2018-10-17 Thread Arnaud de Montard via 4D_Tech

> Le 17 oct. 2018 à 17:58, Kirk Brooks via 4D_Tech <4d_tech@lists.4d.com> a 
> écrit :
> 
> [...] a process set created on the
> client side is available to a trigger method which runs on the server.
> 
> I have an EOS method that does some queries and creates a set. I notice
> that set is visible to the client as well.

EoS method and trigger are executed in the same twin process, see "Execution 
Context" here:

this may explain that. 

-- 
Arnaud de Montard 



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

Sets and the twinned process (Execute on server)

2018-10-17 Thread Kirk Brooks via 4D_Tech
I haven't looked at this in a long time but I'm revisiting some code that
uses sets. This happens to be v15 and we are talking about client/server.

The docs are pretty clear
 about the scope
of sets with the only unusual thing being a process set created on the
client side is available to a trigger method which runs on the server.

I have an EOS method that does some queries and creates a set. I notice
that set is visible to the client as well.

This is contrary to what the docs say but the documentation was written
before we had Execute on Server. So I'm wondering if this is a fluke of
running server and client on the same machine or if sets are always created
as shared elements between the client process and the twin server process.

-- 
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:4d_tech-unsubscr...@lists.4d.com
**