Schemas

Alan Davey david.a.davey at gmail.com
Wed Sep 7 18:22:12 UTC 2022


Hi Martin,

The () don't have anything specifically to do with a "Do" command.  These
have been Omnis' way of referencing the associated thing via notation since
at least Omnis 7.

Run the following from any class (window, menu, object, etc) you have:
Ok message {[$cclass.$name]}
Ok message {[$cclass().$name]}

The first will return '$cclass' and the latter will return the actual name
of your class.

In other words, the first will return the name of the property $name is
attached to ($cwind, $cobj, etc), while in the second case it returns the
name of what $cclass is currently associated with.

HTH,

Alan

On Wed, Sep 7, 2022 at 1:38 PM Martin Obongita via omnisdev-en <
omnisdev-en at lists.omnis-dev.com> wrote:

>  Hi @All,
> What is the difference between the construct:
>  (vList.$add($ref.$class().$name,$ref.$name)))
> and
>  (vList.$add($ref.$class.$name,$ref.$name)))
> I can't get my head to understand what '()' {with BLANK values} does in a
> construct of a Do command?
> Such that if you don't pass blank values, an error is returned.
> Kind regards,Martin O.
>
>     On Wednesday, September 7, 2022 at 08:23:35 PM GMT+3, Martin Obongita
> via omnisdev-en <omnisdev-en at lists.omnis-dev.com> wrote:
>
>   Thank you @Alan,
> That one-liner worked super.Actually, it made me very happy.
> I appreciate your help.
> Martin.
>
>     On Wednesday, September 7, 2022 at 07:51:39 PM GMT+3, Alan Davey <
> david.a.davey at gmail.com> wrote:
>
>  Hi Martin,
>
> You can use this:
>
> Do vList.$define(vSchema,vColumn)
>
> Do $libs.Schemas.$schemas.$sendall($ref.$objs.$sendall(vList.$add(
> $ref.$class().$name,$ref.$name)))
>
>
> If you want to filter, then add that filter as the 2nd parameter to the 2nd
> $sendall() command.
>
> Alan
>
> On Wed, Sep 7, 2022 at 9:34 AM Martin Obongita via omnisdev-en <
> omnisdev-en at lists.omnis-dev.com> wrote:
>
> > Hi All,
> > I have this command that lists all the schemas in use:
> > Do $schemas.$makelist($ref.$name) Returns lList
> >
> > Which similar command can I use to get all the columns in all my
> > schemas?Which command could I use to filter out some of the schemas?
> >
> > Rgds,Martin O.
> > _____________________________________________________________
> > Manage your list subscriptions at https://lists.omnis-dev.com
> > Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com
> >
> _____________________________________________________________
> Manage your list subscriptions at https://lists.omnis-dev.com
> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com
>
> _____________________________________________________________
> Manage your list subscriptions at https://lists.omnis-dev.com
> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com
>
> _____________________________________________________________
> Manage your list subscriptions at https://lists.omnis-dev.com
> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com
>


More information about the omnisdev-en mailing list