Data Entry field control
Will Adkin
will.adkin at lineal.co.uk
Thu Dec 11 11:32:49 EST 2014
Hi George
Try putting it in quotes: i.e:
> Set reference rField to $cinst.$objs.$findname(‘JobCust')
If that fails then make sure that the location of this code is the window that contains the field (i.e. $cinst=containing window)
if you still can’t set a reference to your entry field then perhaps your filed is contained inside some other object? i.e. a tab pane or a group box… the notation must be exact - if $cinst is your window and the field is in a tab pane called MyTabPane then you would use the following to get a reference
> Set reference rField to $cinst.$objs.MyTabPane.$objs.$findname(‘JobCust’)
Kind regards
Will
Will Adkin, Software Development Manager, Lineal Software Solutions Ltd
Apple Reseller, Microsoft Partner, SQLWorks Business Partner
office phone: 01271 375999 | web: lineal.co.uk <http://www.lineal.co.uk/> | email: will at lineal.co.uk <mailto:will.adkin at lineal.co.uk>
> On 11 Dec 2014, at 16:22, George Ziemann <gzieman54 at gmail.com> wrote:
>
>>> Set reference rField to $cinst.$objs.$findname(fJob.JobCust)
>>
>>
>> In this bit, just use JobCust if that is the field name, drop the 'fJob.'
>>> Set reference rField to $cinst.$objs.$findname(JobCust)
>>
>>
>> Mike Matthews,
>
>
> Tried that. Omnis automatically converts JobCust to fJob.JobCust.
>
> I even tried changing the field name to Customer (which doesn't match any
> of the data names). This results in an error message which says
> "Unrecognized variable name, item name or attribute."
>
> --
> George Ziemann
> (480) 278-9746
> _____________________________________________________________
> Manage your list subscriptions at http://lists.omnis-dev.com
More information about the omnisdev-en
mailing list