RE: Named Selections

2019-02-08 Thread Chip Scheide via 4D_Tech
Thanks,
I was hoping there was a an already existing command.

On Fri, 8 Feb 2019 13:31:05 -0600, David Ringsmuth wrote:
> Chip,
> 
> We did this same things with sets by using an On Err 
> Call(“Error_SetDoesNotExist”).
> 
> Write an On Err Call for Named Selections, and then use it, and test 
> the result of your call error handler.
> 
> Hth!
> 
> David Ringsmuth
> 
> From: Chip Scheide via 4D_Tech
> Sent: Friday, February 8, 2019 11:52 AM
> To: 4D iNug Technical
> Cc: Chip Scheide
> Subject: Named Selections
> 
> Is there a way to determine if a named selection exists?
> 
> something like this:
> 
> if (Not(Named Selection Exists("Selection_Name")))
>   Copy Named Selection([table];"Selection_Name")
> end if
> 
> Thanks
> Chip
> 
> ---
> 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
> **
> 
---
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: Named Selections

2019-02-08 Thread David Ringsmuth via 4D_Tech
Chip,

We did this same things with sets by using an On Err 
Call(“Error_SetDoesNotExist”).

Write an On Err Call for Named Selections, and then use it, and test the result 
of your call error handler.

Hth!

David Ringsmuth

From: Chip Scheide via 4D_Tech
Sent: Friday, February 8, 2019 11:52 AM
To: 4D iNug Technical
Cc: Chip Scheide
Subject: Named Selections

Is there a way to determine if a named selection exists?

something like this:

if (Not(Named Selection Exists("Selection_Name")))
  Copy Named Selection([table];"Selection_Name")
end if

Thanks
Chip

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

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

Named Selections

2019-02-08 Thread Chip Scheide via 4D_Tech
Is there a way to determine if a named selection exists?

something like this:

if (Not(Named Selection Exists("Selection_Name")))
  Copy Named Selection([table];"Selection_Name")
end if

Thanks
Chip

---
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: Does anyone know how IP sets and named selections are meant to interact with workers?

2017-05-08 Thread David Adams via 4D_Tech
I realized after posting that the forums in France are a better place for
my question. If anyone is reading the archives and wants to see if an
answer came through, go to this thread:

IP sets and named selections in workers: What should we expect?
http://forums.4d.fr/Post/EN/19400576/1/19400577
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Does anyone know how IP sets and named selections are meant to interact with workers?

2017-05-08 Thread David Adams via 4D_Tech
Continuing on with basic research here as the answer doesn't seem to be in
the docs (?)

Workers don't allow for IP variables/arrays, but do allow for virtually
every other thing that you can have in a normal process. You don't get IP
vars, but you do get CALL WORKER. Fine by me. But then I wondered "what
about IP sets?" I guessed that an IP set or named selection created outside
of a worker would not be visible within a worker. I was wrong.

I did a five-minute scratch database and tested out:

* Create an IP set in a standard process (process 1 or a new process, same
results).

* Call a worker and tell it to run a method that uses the set or named
selection and report how many records there are.

The worker saw the IP set and IP named selection just fine.

I have no problem with this - I think it's a good result - but i didn't
find any documentation on the feature one way or the other. Is this
something that we can count on, or is it something that might change in
future versions? We can pass in sets and selections via data without
relying on IP sets/named selections...but I wouldn't go to the trouble
unless I have to.
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**