How to avoid duplicating methods
Phil (OmnisList)
phil at pgpotter.co.uk
Fri Jan 6 15:01:53 UTC 2023
Hi Martin,
Ok, so your sending a row to save...
so send the row as a parameter, then the method in the main window can
save it for you...
why wouldn't that work...
regards
Phil Potter
Based in Chester in the UK.
On 06/01/2023 14:03, Martin Obongita via omnisdev-en wrote:
> Hi Phil
> I have two windows with buttons to save records to the same table/schema.
> Should the methods in the 2 save buttons be duplicated?
> Or there is a way I can call the same save method from two the two windows?
>
> I hope my question is now clearer.
> Martin
>
>
>
> On Friday, January 6, 2023 at 04:47:05 PM GMT+3, Phil (OmnisList)<phil at pgpotter.co.uk> wrote:
>
> Hi Martin,
>
> So why can't any sub window call the main window method and get the list
> it returns?
>
> Surely it can, and there are no limitations?
>
> I'm not sure I understand your query?
>
> regards
> Phil Potter
> Based in Chester in the UK.
>
> On 06/01/2023 13:01, Martin Obongita via omnisdev-en wrote:
>> Hi All,
>> I have a sub window that fetches a list from a table class by calling a method in the main window.
>> $cwind.$getDataList
>> I would wish to fetch the same list from the same table but in a different sub window.
>> I do not want to copy the method from one window to another.
>> Is there a function that can call a method in a main window(A) from a sub window of main window (B)?
>> I cannot inherit the window because Window (B) is performing a different function.
>>
>> Kind regardsMartin Obongita
>>
>>
>> _____________________________________________________________
>> 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