Community
Participate
Working Groups
Build Identifier: 20110928 nightly build Service call with Decimal return type got runtime error Reproducible: Always Steps to Reproduce: 1. Create Web Client with Service project, create a service 2. Add function with decimal return type function returnDecimal2() returns(decimal(5,2)) res decimal(5,2) = 123.45; return(res); end 3. Create Web Client Project, create RUIHandler 4. Config the REST service binding resource 5. In RUIHandler add service call and callback function call srv_return.returnDecimal2() returning to callback_decimal onException handle_exeption; function callback_decimal(dec decimal(5,2) in) //dec_field.text = dec; end 6. Run in preview mode, got the following error message [CRRUI2082E] (Inner error:got inner error when invoke construction function of EDecimal) ReferenceError: i is not defined at new (edt_runtime.js:193:43) at [object Object].eze$$thisClass (egl.js:592:28) at [object Object]. (ServiceRuntimes.js:194:59) at ServiceRuntimes.js:344:30 at [object Object].runCallback (ServiceRuntimes.js:488:13) at XMLHttpRequest.onreadystatechange (ServiceRuntimes.js:398:59) i is not defined [CRRUI2094E] (this function invocation of EGL caused the error) : RUI Runtime.Handling callback for workspace://server/server.ServiceWithReturn() [native JavaScript] client/TestReturn.egl() at line 181
Joe, Please triage this and assign it back to me if it's in JS gen....thanks.
this appears to be a JS runitme issue. /**************************************************************************** * EDecimal ****************************************************************************/ egl.defineClass( "eglx.lang", "EDecimal" ,"eglx.lang", "AnyBoxedObject", { "constructor" : function(s){ egl.eglx.lang.AnyBoxedObject.call(this, i); //TODO no ctor chaining?! } } ); (this, i) the i is undefined.
Fixed.
Verified in build 20111011