Error on opening Remote Form
This seems to be a genuine Omnis bug.
As a way out, I tried not instantiating the object in the form, but calling it as just an object on it’s own and was surprised I could not. I used the full notation as given by the notation helper, although I know how to do it myself already. I did that just to be sure. It said that the method is not a child of the parent.
Isn’t it correct that you can call public methods in an object by addressing the object directly. It acts like I have to instantiate it in the remote form. That’s the only way Omnis is recognizing the public methods I have in the object.
Why can’t I call it directly? Using like:
$objects.oInv.$setup()
The method is in the object. It’s called fine when I instantiate the object in the form. Using the full notation doesn’t help, still says it’s not a child of the object.
???
Thanks,
Das Goravani
> On Feb 13, 2018, at 9:59 PM, Michael Monschau <michael@brainydata.co.uk> wrote:
>
> Hi Das,
>
> This particular javascript is related to list handling and the error suggests that ‘d’, which should be pointing to a list, is null. This should generally not occur. I have only ever seen such an error when I needed to clear my browser cache, after upgrading to a new version of Omnis. It would be best to always use a browser that you do not use for your general browsing, as clearing your browser cache may be something that you will have to do from time to time. Another possibility is, you are trying to access a list that has not been defined, but I would have thought that the Omnis scripts would cater for that. However one never knows.
>
> So before sending a report to Omnis, check your lists and try clearing the browser cache and then test your form again.
>
> Regards,
> Michael
>
> Michael Monschau (Director)
> Brainy Data Limited
>
> Reply To: michael@brainydata.co.uk
> Phone: +44 (0)870 474 0708
> Web: www.brainydata.co.uk the home of Omnis Components and Developer Services
>
>
>
>
>
>
>> On 14 Feb 2018, at 00:14, Das Goravani <das@Goravani.com> wrote:
>>
>>
>> I have tried everything I can think of. Have you ever seen this error or have any idea what it might be pointing me towards
>>
>>
>> null is not an object (evaluating ‘d.lstData[h].lstDef’)
>>
>>
>> It comes up over the browser with the form half drawn behind it, upon clicking OK on this message the form appears, but will not display data that is present in the rows whose fields are shown on the form. The error seems to come from not my code but the evaluation of the form as the browser draws it.
>>
>> Thanks for any help,
>>
>> Das Goravani
>> _____________________________________________________________
>> Manage your list subscriptions at lists.omnis-dev.com
>> Start a new message -> mailto:omnisdev-en@lists.omnis-dev.com
>
> _____________________________________________________________
> Manage your list subscriptions at lists.omnis-dev.com
> Start a new message -> mailto:omnisdev-en@lists.omnis-dev.com
_____________________________________________________________
Manage your list subscriptions at lists.omnis-dev.com
Start a new message -> mailto:omnisdev-en@lists.omnis-dev.com