AW: The App Server and the CRB

Bruno Del Sol bruno.delsol at bydesign.fr
Tue Jun 23 04:13:35 EDT 2020


Hi Rudolph,

Code sitting in code classes is fine in a web app context, either with remote forms or when called from the rest server. 
As any running code, they acquire a $ctask context from the calling remote task. With the latest version you even can 
remote debug them.

Of course though, you don't ever want to use the class variables of the code class, as these would be shared between 
remote instances, so only local vars are safe. But reading and writing into the $ctask instance vars is fine as well.

Regards
Bruno

By Design
http://www.bydesign.fr
Bruno Del Sol
bruno.delsol at bydesign.fr
tel (33) 01 48 78 47 37
46, rue de La Tour d'Auvergne
75009 Paris (France)

Le 23/06/2020 à 10:00, Rudolf Bargholz a écrit :
> Hi Das,
>
> One point in your mail below piqued my interest. If I remember correctly, you cannot use code classes in a web app context. You will need to move the code to an object. Each web session in Omnis Studio will have it's own file format, task and hash variables, but there was something with code classes that did not work well with remote tasks. We only use code classes in this context for error handlers.
>
> Regards
>
> Rudolf Bargholz
>
> -----Ursprüngliche Nachricht-----
> Von: omnisdev-en <omnisdev-en-bounces at lists.omnis-dev.com> Im Auftrag von Das Goravani
> Gesendet: Sonntag, 21. Juni 2020 06:04
> An: OmnisDev List - English <omnisdev-en at lists.omnis-dev.com>
> Betreff: Re: The App Server and the CRB
>
>
> Re Reading your note I guess I should ask…
>
> Is my wanting to use code that I already have.. by default is that trying to manipulate data in the Main Task?  I take it that therefore the CRB in the main task IS shared by all connections.. hence why you shouldn’t do your work there..
>
> I just want to run this monster calculation PDF creation engine.. from data input on the web.. the code is currently in code classes.. and uses the file format fields..
> _____________________________________________________________
> Manage your list subscriptions at http://lists.omnis-dev.com Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com
> _____________________________________________________________
> Manage your list subscriptions at http://lists.omnis-dev.com
> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com



More information about the omnisdev-en mailing list