Dear,
I'm working with the SVN trunk r270 of SmartSVN, on a Mac OS X 10.5.6
I specified a custom input Format function for the Date (from my html file, as pure javascript) : ex:
When I launch the application (either from Hosted Mode or Firefox), I got the following error :
If I comment the line 156 of Date.js
then I don't get the error anymore.
Seems to be a problem with the 'isc.logInfo' function.
Best regards
Alexandre
I'm working with the SVN trunk r270 of SmartSVN, on a Mac OS X 10.5.6
I specified a custom input Format function for the Date (from my html file, as pure javascript) : ex:
Code:
myInputFormat = function( dateString, centuryThreshold ) {
var array = dateString.split( '.' );
if (array != null) {
var year = array[2];
if (year && year.length <= 2) {
year = parseInt(year, 10);
if (year < centuryThreshold) year += 2000;
else year += 1900;
array[2] = year;
}
var newDate = new Date(array[2], array[1] - 1, array[0]);
return newDate;
} else {
return null;
}
}
Date.setInputFormat( myInputFormat );
Code:
com.google.gwt.core.client.JavaScriptException: (TypeError): Value undefined (result of expression isc.logInfo) is not object. line: 156 sourceId: 5162 sourceURL: http://localhost:8080/AstreeSCIGwt/ch.ilem.astree.sci.AstreeSCI/sc/system/language/Date.js at com.smartgwt.client.widgets.form.DynamicForm.create(Native Method) at com.smartgwt.client.widgets.BaseWidget.getOrCreateJsObj(BaseWidget.java:283) at com.smartgwt.client.widgets.layout.Layout.addMember(Layout.java:792) at ch.ilem.astree.sci.client.gui.SCIPage.getContent(SCIPage.java:515) at ch.ilem.astree.sci.client.gui.SCIPage.init(SCIPage.java:1055) at ch.ilem.astree.sci.client.AstreeSCI.onHistoryChanged(AstreeSCI.java:58) at ch.ilem.astree.sci.client.AstreeSCI$1.onInit(AstreeSCI.java:74) at com.smartgwt.client.widgets.BaseWidget.doInit(Native Method) at com.smartgwt.client.widgets.layout.VLayout.create(Native Method) at com.smartgwt.client.widgets.BaseWidget.getOrCreateJsObj(BaseWidget.java:283) at com.smartgwt.client.widgets.BaseWidget.draw(Native Method) at ch.ilem.astree.sci.client.AstreeSCI.onModuleLoad(AstreeSCI.java:82)
Code:
// isc.logInfo("Unable to determine input format associated with display format " + "function - returning default input format", "Date");
Seems to be a problem with the 'isc.logInfo' function.
Best regards
Alexandre
Comment