Community
Participate
Working Groups
Created attachment 205067 [details] RUI Handler egl source I wasn't able to preview or debug into this statement if (myboolean isa number)
Hi Scott, The error happens because the generated js for isa Number has runtime error if (egl.is(myNum, "NUMERIC",egl.isnumeric)) { this js will call egl.isnumeric = function(s) { if (s == null) return true; return (s.length!=0 && s.match(/[^0-9]+/)==null); }; In which, s is a numeric type and doesn't not have match funtion. I wonder if we can just remove genIsaExpression in NumTypeTemplate and let num type just use the generic method in TypeTemplate. This method works fine to resolve this problem. Can you review it? Thanks
Created attachment 206047 [details] fix
Created attachment 206308 [details] Updated fix
The old patch is out of date because Scott has finished some enhancement to Number TypeTemplate Change the genIsaExpression of NumberTypeTemplate to deal with number type field. Change runtime to deal with non-string input
Value and reference decimal should be able to handle both isa decimal isa number Added additional variations in the new attachement
Created attachment 206366 [details] second test
Created attachment 206382 [details] Additional Fix for the new variation
Add fix to handle the 2 new variations
Verified with 201111062101 & closed