Object class in a Table class

Phil (OmnisList) phil at pgpotter.co.uk
Wed Nov 23 22:14:48 UTC 2022


Martin,

Like Doug, what you are doing is unclear to me also.

In a table class you have an instance variable that is an object.

The Object you have defined elsewhere with methods within it.

What is not clear is why this object or its methods are affected by 
either the schema or query that it is associated to...

You have not given us enough information to understand your issue.

Is it about sending parameters to the methods within the Object, that 
vary as one is a schema and one is a query?

Please explain further...

regards
Phil Potter
Based in Chester in the UK.

On 23/11/2022 21:13, Martin Obongita via omnisdev-en wrote:
> Hi Doug
> I am using v.10.22 js forms win 10 platform.
> I have never used object reference in my code.
> This is because I don't understand how to use them.
> I use instance variables of type object, sub type object class created in table classes, to call methods in object classes.
> This variable works without issues.
> I will need the helping hand of a tutor to make me understand object referencing.
> I think this might resolve the issue I'm experiencing of Omnis crashing.
>
> Regards,Martin.
>
>
>
>
>
>
>
> Sent from Yahoo Mail on Android
>   
>    On Wed, 23 Nov 2022 at 20:32, Doug Easterbrook<doug at artsman.com>  wrote:   a few things would be helpul — like version of omnis you are using.
>
> we have object references in all of our table classes (mostly inherited through instance variables) and objects (instance or local variables ) in a few of the table classes.
> I would try object references since those are easier to pass around than objects.
>
>
> Doug EasterbrookArts Management SystemsLtd.mailto:doug at artsman.comhttp://www.artsman.comPhone  (403) 650-1978
>
> On Nov 23, 2022, at 5:37 AM, Martin Obongita via omnisdev-en<omnisdev-en at lists.omnis-dev.com>  wrote:
>   Just a clarification that when you definefromsqlclass from 1 table class works fine.
> Problem is seen when you definefromsqlclass from 2 tables to build a list query.
> This is when the $construct method of the object class is called and Omnis crashes.
>
>
>
>
>
>
>
>      On Wednesday, November 23, 2022 at 04:17:42 PM GMT+3, Martin Obongita via omnisdev-en<omnisdev-en at lists.omnis-dev.com>  wrote:
>
>   Hi $all
> Has anyone tried to reference an instance variable of type object that is created in a super table class, from another object class?
> Mine reference seems to crash Omnis when I try to define a list using definefromsqlclass command.
>
> RgdsMartin O.
> _____________________________________________________________
> Manage your list subscriptions athttps://lists.omnis-dev.com
> Start a new message ->mailto:omnisdev-en at lists.omnis-dev.com  
>
> _____________________________________________________________
> Manage your list subscriptions athttps://lists.omnis-dev.com
> Start a new message ->mailto:omnisdev-en at lists.omnis-dev.com  
>
>
>    
> _____________________________________________________________
> 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