The first time a run my app with 2.26.2 on development machine i have this error opening a form that normally works fine
ops, an error occurred while processing Ajax response ...
As subsequent instructions did not execute, display might be erroneous
Error details:
Type: TypeError
Message: jQuery(...).get(...) is undefined
Stack: @http://localhost/awScripts/_Source/FoxInCloud.js?2.26.2 line 1389 > eval:208:1 DOMreadyUpdate@http://localhost/awScripts/_Source/FoxInCloud.js?2.26.2:1389:18 XMLDOMread@http://localhost/awScripts/_Source/FoxInCloud.js?2.26.2:1365:11 AjaxSuccess@http://localhost/awScripts/_Source/FoxInCloud.js?2.26.2:1099:17 u@http://localhost/awScripts/bower/jquery/dist/jquery.min.js?2.26.2:2:27452 fireWith@http://localhost/awScripts/bower/jquery/dist/jquery.min.js?2.26.2:2:28202 k@http://localhost/awScripts/bower/jquery/dist/jquery.min.js?2.26.2:2:77649 n/<@http://localhost/awScripts/bower/jquery/dist/jquery.min.js?2.26.2:2:79907
Note: this message is intended to the FoxInCloud developer only, it won't display to end user.
Do you want to continue showing development warnings?
And when i continue, or if i select to not show the previous warnings i have this:
Sorry, FoxInCloud server produced an unexpected error… We apologize for this discomfort, please try again later.
client: 2.26.2 - server: 2.26.2 (this line displays to developer only)
awajax.lSuccess(.f.): Error detected at code line #10,573 of method 'awajax.propssave_user'
"Method or procedure cxmlofobject_(): error #1426 ("OLE error code 0x8002000e: Numero di parametri non valido") at code line #1,926 ("if .f. or (m.llwProp and m.toObj.wPropArray(m.lcProp) or type(m.lcProp_, 1) == 'A') or !varSet(@m.luValue, cXMLofObject_uValue( iif(m.llwProp , m.toObj.wPropGet(m.lcProp) , evaluate(m.lcProp_) ) , @m.lcType , @m.tcResult ))")"
'ACUT erp' Application Administrator ('FoxInCloud App Admin') is aware of this error and will fix it as soon as possible.
This is the signature form
Ciao Michele,
could you please use the code formatting feature?
could you post the AJAX response like shown in the SS below?
thanks
Old code removed
Error occurs on this line, as if there was no element with ID _form_bollettino_print-pagine
:
jQuery('#_form_bollettino_print-pagine').get(0).pageActivate('_form_bollettino_print-pagine-page1');
When error fires, can you find this element in the inspector
tab?
<div id="_form_bollettino_print-pagine" class="…">
if so can you post the HTML?
I don't find it... When the error occurs the form is not still shown in the browser
it can exist and not yet be shown
can you please try to search "_form_bollettino_print-pagine" in the inspector pane?
Done
can you see this error message before or after the one you posted?
awajax.lSuccess(.f.): Error detected at code line #10,573 of method 'awajax.propssave_user'
"Method or procedure cxmlofobject_(): error #1426 ("OLE error code 0x8002000e: Numero di parametri non valido") at code line #1,926
"if .f. or (m.llwProp and m.toObj.wPropArray(m.lcProp) or type(m.lcProp_, 1) == 'A') or !varSet(@m.luValue, cXMLofObject_uValue( iif(m.llwProp , m.toObj.wPropGet(m.lcProp) , evaluate(m.lcProp_)) , @m.lcType , @m.tcResult ))")"
update: you mentioned after in your first post -- do you confirm?
In your OP
This is the signature form
error is about _form_bollettino_print
is this what you call the "signature form"?
what code do you have in form_bollettino_print.init()
, if any?
Nothing special..
OK
The Javascript error is because of this earlier issue:
Error detected at code line #10,573 of method 'awajax.propssave_user'
Method or procedure cxmlofobject_(): error #1426 ("OLE error code 0x8002000e: Numero di parametri non valido") at code line #1,926
…
lcProp_= 'm.toObj.' + m.lcProp
…
if .f.;
or (m.llwProp and m.toObj.wPropArray(m.lcProp) or type(m.lcProp_, 1) == 'A');
or !varSet(@m.luValue, cXMLofObject_uValue(;
iif(m.llwProp;
, m.toObj.wPropGet(m.lcProp);
, evaluate(m.lcProp_); && error must occur here
);
, @m.lcType;
, @m.tcResult;
))
I means that, while saving the form members properties, we read a property from an OLE object that triggers the error "Numero di parametri non valido"
I don't see any OLE object in _form_bollettino_print_Ini.dbf
The error comes with V 2.26.2 probably because of this behavior change: all custom properties are now added automatically to .wcPropSave
; you need to add those you don't want to save to .wcPropSaveNot
All this may help us find what happens.
PS: please remove the code from your previous posts or start a new thread because it makes the markdown renderer slow down terribly
I define at runtime an object in the form (or better more than one) to print data. We use Crystal Reports... DO i need to add them to wcpropsavenot of the form-- Is it correct--- I'll try...
yes, add these properties to .wcPropSaveNot
of whatever object they are added to
Ok. It works fine. But i have this problem with all properties or only with properties that contain OLE objects ?
the behavior change notice tells you all.