object property

Josh Luchies josh.luchies at royalhomes.com
Tue Nov 29 15:21:45 UTC 2022


Hi Martin,

I've used $cinst.$clientcommand("savepreference", 
row("PrefID",PrefValue)) and the related 
$cinst.$clientcommand("loadpreference",row('PrefID','iVar')) to get 
properties from remote forms into Instance Variables available on the 
server.  The above methods have to be run on the client (pink methods in 
the UI) and then the iVar can be used in server executed methods after 
it has been populated.

Josh Luchies
IT Administrator
Royal Homes Limited
Phone: 519 357 2606 ext 245

On 11/29/2022 7:00 AM, omnisdev-en-request at lists.omnis-dev.com wrote:
> ------------------------------
>
> Message: 4
> Date: Mon, 28 Nov 2022 15:30:20 +0100
> From: Rob Mostyn<mostyn at platformis.net>
> To: OmnisDev List - English<omnisdev-en at lists.omnis-dev.com>
> Subject: Re: object property
> Message-ID:<80A97171-C6F9-46AE-8A0F-76793BFBE30F at platformis.net>
> Content-Type: text/plain; charset="us-ascii"
>
> Hi Martin,
>
> Where does the attribute $active live?  On the server?  Or on the client?
> You said you are using a remote form so the answer is on the client.
>
> Where is your code running?  On the server?  If so then the attribute does not exist on the server (because its on the client).
>
> Hope this helps,
> Rob Mostyn
>
> +44 (0)20 3233 0044
>
> As Carl Sagan once said:
> One of the great commandments of science is, "Mistrust arguments from authority." ... Too many such arguments have proved too painfully wrong. Authorities must prove their contentions like everybody else.
>
>> On 28 Nov 2022, at 13:54, Martin Obongita via omnisdev-en<omnisdev-en at lists.omnis-dev.com>  wrote:
>>
>> Hi friends,
>> How do I get the property of an object in a remote form?
>> I am running the command:
>>
>> Calculate lActiveStatus as $cinst.$objs.ef_name.$active
>>
>>
>> This returns an error "Cannot get the value of a remote form instance property when executing code on the server".
>> I am using O$10.22 web dev.
>>
>> Martin.
>> _____________________________________________________________
>> Manage your list subscriptions athttps://lists.omnis-dev.com
>> Start a new message ->mailto:omnisdev-en at lists.omnis-dev.com


More information about the omnisdev-en mailing list