> If not, you could try LONGINT ARRY FROM SELECTION and pack the array into
> shared object.
Bad idea.
First, you should avoid strongly shared objects in this case.
Second, LONGINT ARRY FROM SELECTION has nothing to do with ORDA.
Third: entities are process depended, because they may use transactions. So you
cannot pass entities to a new process, because these entities are may be
invalid.
Fourth: solution: just pass a collection of the ID’s to the new process:
like:
$object.myIDs:=$entitySelection.toCollection("ID“).extract(„ID“)
new process(…;$object)
and in the new process just create the new entity selection:
ds.Table.query(„ID IN :1“;$object.myIDs)
--
Grüße/Regards,
[heubach-media] | Christian Sakowski
[email protected]
iChat/AIM: SakowskiF
Tel: +49/(0)40/52 10 59-23
> Am 13.10.2018 um 19:30 schrieb Alan Chan via 4D_Tech <[email protected]>:
>
> Hi Peter,
>
> I haven't touched v17 yet. There might be easier way. If not, you could try
> LONGINT ARRY FROM SELECTION and pack the array into shared object.
>
> Alan Chan
>
> 4D iNug Technical <[email protected]> writes:
>> This may be related to other thread - Defining and documenting objects - as
>> it is related to scope of new objects: I am playing a bit with 4D v17, and,
>> if I understand it correctly, I can pass around shared objects and shared
>> collection between processes (and workers, but I am not that far yet.)
>>
>> However, how I pass around entity selections? It does not seems I can pass
>> them as a parameter (new process will get null.) I tested to declare entity
>> selection as shared object, but it does not work either.
>>
>> I am trying to do something like global named selection. Examples that,
>> say, pass selections to workers pass a condition to build a selection. This
>> seems to restricting.
>>
>> Am I overlooking something obvious?
>>
>> --
>>
>> Peter Bozek
>>
>
> **********************************************************************
> 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]
> **********************************************************************
--
heubach media
Osterfeldstr. 12-14 | Haus 1 | Eingang Nord
22529 Hamburg
tel: 040 / 52 10 59 - 10 | fax: -99
mail: [email protected]
home: www.heubach-media.de
Geschäftsführer|CEO: Matthias Heubach
Mieten Sie Ihre Computer, iPads & Drucker für Ihre Events bei:
http://www.milo-rental.com
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen.
Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten
haben,
informieren Sie bitte sofort den Absender und vernichten Sie diese Mail.
Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht
gestattet.
This e-mail may contain confidential and/or privileged information.
If you are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and destroy this e-mail.
Any unauthorized copying, disclosure or distribution of the
material in this e-mail is strictly forbidden.
**********************************************************************
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]
**********************************************************************