O$: odd error message revisited
Fred Brinkman
fred.brinkman at euromnis.com
Fri Jan 22 16:51:29 EST 2010
;-)
Fred Brinkman
www.euromnis.com
**********************************************
Fred Brinkman Consultancy
B-1000 Brussels
Tel. +32-474-83 80 80
Fax +32-2-330 10 31 (on request)
Email fred.brinkman at euromnis.com
*********************************************
Op 22 jan 2010, om 22:45 heeft Panikos Stavrou het volgende geschreven:
> it is, with two parameters, ivCoffee, ivCigarette, both boolean, in
> my case always set to kTrue
> :)
>
>
> Fred Brinkman wrote:
>> and are you sure that $doshit is not a reserved word?
>> ;-)
>>
>>
>> Fred Brinkman
>> www.euromnis.com
>>
>> **********************************************
>> Fred Brinkman Consultancy
>> B-1000 Brussels
>>
>> Tel. +32-474-83 80 80
>> Fax +32-2-330 10 31 (on request)
>> Email fred.brinkman at euromnis.com
>> *********************************************
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> Op 22 jan 2010, om 21:12 heeft Andreas Pfeiffer het volgende
>> geschreven:
>>
>>> Hi Panikos,
>>>
>>> If you want to trigger a method within a subform then you need to
>>> make it client executed. Also you would need to use
>>>
>>> Do method $cinst.$objs.mysubform.$dosomething()
>>>
>>> Note that I do not use Do. Rather I use the command Do method.
>>>
>>> That said it will trigger the method within the subform if it is
>>> marked as client executed. From there you are free to trigger
>>> another server side method with the command "Do method" that
>>> executes the server side.
>>>
>>> Hope that helps.
>>>
>>> Best regards,
>>>
>>> Andreas
>>>
>>> Am 22.01.2010 um 20:49 schrieb Panikos Stavrou:
>>>
>>>> ok all, i'm stuck on this for a week
>>>>
>>>> i've tried to simplify my code to understand this error, so
>>>> here's the gist of it:
>>>>
>>>> in the $event method (set to execute on client) of a field in a
>>>> remote form i have this code
>>>>
>>>> On evAfter
>>>> Do $cinst.$objs.rfUserAutoJoin.$test(ivResultsLst)
>>>>
>>>> rfUserAutoJoin is a subform within this form.
>>>> here's the only line for $test (a method set to execute on client)
>>>>
>>>> Do method $doshit (pResultsLst)
>>>>
>>>> $doshit is a subform method (NOT set to execute on client,
>>>> because it needs to do an sql fetch)
>>>>
>>>> i'm not listing the $doshit code because it never gets there
>>>>
>>>> just after i tab out of the field evAfter gets called,
>>>> $cinst.$objs.rfUserAutoJoin.$test is called
>>>>
>>>> and the trace log opens up and displays the error
>>>> "cannot call a server method when part way through evaluating a
>>>> calculation"
>>>>
>>>> $doshit never gets called
>>>>
>>>> what evaluation??? it's a simple method call with a
>>>> straightforward parameter!!
>>>> help!
>>>>
>>>> panikos
>>>> _____________________________________________________________
>>>> Manage your list subscriptions at http://lists.omnis-dev.com
>>>
>>> _____________________________________________________________
>>> Manage your list subscriptions at http://lists.omnis-dev.com
>>
>> _____________________________________________________________
>> Manage your list subscriptions at http://lists.omnis-dev.com
>>
>
> _____________________________________________________________
> Manage your list subscriptions at http://lists.omnis-dev.com
More information about the omnisdev-en
mailing list