Community
Participate
Working Groups
run the following handler, you get $inst is not defined exception in FF external browser. This is critical, because the the "expect" method is being used in the eunit basic LogResult library for all the primitive types, so this makes ALL the date/timestamp test cases have errors. handler h1 type RUIhandler{initialUI =[ ], onConstructionFunction = start, cssFile = "css/a.css", title = "h1"} private const ACTUALHEADER string = "Actual value = "; private const EXPECTEDHEADER string = "Expected value = "; function start() a, b date; syslib.writeStdout("a: " + a); syslib.writeStdout("b: " + b); t1, t2 timestamp("yyyyMMdd"); syslib.writeStdout("t1: " + t1); syslib.writeStdout("t2: " + t2); s String = expect(a, b); syslib.writeStdout("s: " + s); s2 String = expect(t1, t2); syslib.writeStdout("s2: " + s); end private function expect(expected any in, actual any in) returns (String) standardMsg string = "Failed: " + EXPECTEDHEADER + "'" + expected + "' " + ACTUALHEADER + "'" + actual + "' "; return (standardMsg); end end
Fixed; removed the last of the runtime references to the old defaultFormat fields, consistent with the EDT design changes regarding date / timestamp formats.
still have issues
Fixed (and this time I mean it!)
this time, I get a: 10/20/2011 b: 10/20/2011 t1: 2011-10-20-00.00.00.000000 t2: 2011-10-20-00.00.00.000000 s: Failed: undefined'10/20/2011' undefined'10/20/2011' s2: Failed: undefined'10/20/2011' undefined'10/20/2011' why is it saying undeinfed, it should be the string value of the constants defined inside the handler
Fixed; JS gen was missing a line of code required to handle field initialization on RUIHandlers.
This high severity defect was fixed several weeks ago, so I am closing.