From: | Thierry Nivelet (FoxInCloud) |
To: | Tuvia Vinitsky |
I have an appt 10-11:30 pm. How about 9:00?
Tomorrow night, around 10 pm your time? (I'm currently in Monterrey, Mexico, same time as Chicago)
when?
OK then, we'll see that tomorrow
I can have a teamviewer session tomorrow anytime after noon Chicago time.
There are several parent classes, but I have traced all the click and valid methods and there is nothing there. The valid of the text is just something like:
if not thisform.wlhtmlgen
thisform.objec1.refresh
endif
In object1.refresh it refreshes an array
Tuvia,
thanks for all the material provided
sorry, I can't figure out what's going on
could you set up an URL and/or have a teamviewer session sometime tomorrow?
column1.text has no methods other than default
column2.tx has a valid method that calls the refresh of a textbox on the form.
column2 is editabkle
which events are implemented in column1.text1?
do you need the grid to be editable?
The error occurs when this request starts:
After ignoring the error I can see :
in firebug's network panel, you can see which request is sent to server when problem occurs
a screenshot such as this one would help

Seems right, but I am not exactly sure how to confirm using Firebug. Firebug seems to only be able to display the stack when program execution halts.
I guess the problem occurs when this event fires
$('dtcadd_scx-grid_1').observe('blur', FoxInCloud.DOMEvent.bind(FoxInCloud));
can you confirm?
This is the js from production mode, I de-minified it somewhat:
/* Free space for Firebug messages *///* Generated on 02/06/13 07:20:06 AM by FoxInCloud version 1.265 -- *// $('dtcadd_scx').observe('click', FoxInCloud.DOMEvent.bind(FoxInCloud)); $('dtcadd_scx-cmdok').observe('blur', FoxInCloud.DOMEvent.bind(FoxInCloud)).observe('click', FoxInCloud.DOMEvent.bind(FoxInCloud)).observe('focus', FoxInCloud.DOMEvent.bind(FoxInCloud)).observe('mouseup', FoxInCloud.DOMEvent.bind(FoxInCloud)); $('dtcadd_scx-cmdcancel').observe('blur', FoxInCloud.DOMEvent.bind(FoxInCloud)).observe('click', FoxInCloud.DOMEvent.bind(FoxInCloud)).observe('focus', FoxInCloud.DOMEvent.bind(FoxInCloud)).observe('mouseup', FoxInCloud.DOMEvent.bind(FoxInCloud)); $('dtcadd_scx-editbox_1').observe('blur', FoxInCloud.DOMEvent.bind(FoxInCloud)).observe('click', FoxInCloud.DOMEvent.bind(FoxInCloud)).observe('dblclick', FoxInCloud.DOMEvent.bind(FoxInCloud)).observe('focus', FoxInCloud.DOMEvent.bind(FoxInCloud)); (function(){var oGrid = $('dtcadd_scx-grid_1'); Object.extend(oGrid, {oGrid: new AW.UI.Grid, oTable: new AW.XML.Table}); oGrid.oGrid.defineControlProperty('DataUpdate', false); var oTable = oGrid.oTable; with (oGrid.oGrid){ setSelectorWidth(10); getSelectorTemplate().setStyle('font-weight','bold'); setRowCount(0); setSelectionMode('single-cell'); setStyle('background-color','#FFFFFF'); setColumnCount(2); setControlDisabled(false); setStyle('font-family','Courier New'); setStyle('font-size','9pt'); setStyle('color','#000000'); setHeaderHeight(19); setSize(undefined,288); setSelectorVisible(false); setRowHeight(23); setScrollBars('both'); setSize(276,undefined); setColumnIndices([0,1]); with (getCellTemplate()) { setStyle('cursor','inherit'); } setColumnResizable(true,0); setColumnWidth(149+1,0); setHeaderText('Timetype',0); with (getHeaderTemplate(0)) { setStyle('text-align','left'); setStyle('background-color','#F0F0F0'); setStyle('font-size','9pt'); setClass('text','normal'); } setCellEditable(true,0); with (getCellTemplate(0)) { setStyle('text-align','left'); setStyle('font-family','Arial'); } setColumnResizable(true,1); setColumnWidth(75+1,1); setHeaderText('Timeqty',1); with (getHeaderTemplate(1)) { setStyle('text-align','left'); setStyle('background-color','#F0F0F0'); setStyle('font-size','9pt'); setClass('text','normal'); } var fmt = new AW.Formats.Number; fmt.setTextFormat('#####.##'); setCellFormat(fmt, 1); setCellEditable(true,1); with (getCellTemplate(1)) { setStyle('text-align','right'); setStyle('font-family','Arial'); } setCellModel(oTable); setVirtualMode(false); with(oTable) { setURL("Temp/dtcadd_scx-grid_1.xml"); setAsync(false); request(); } } oGrid.oGrid.setCellModel(oGrid.oTable); oGrid.update(oGrid.oGrid); oGrid = oGrid.oGrid; with (oGrid) { defineRowProperty('Clicked', false); oGrid.onRowMouseDown = function(event, row){this.setRowClicked(true, row)}; oGrid.onRowMouseUp = function(event, row){this.setRowClicked(false, row)}; oGrid.onCurrentRowChanged = function(row){ var value = this.getRowProperty('tuRow', row); if (!(this.disabled || value === null)){ if (!this.getRowClicked(row) && FoxInCloud.gridRowChangeDelay > 0) { if (this.nTO) window.clearTimeout(this.nTO); this.nTO = FoxInCloud.gridMethod.bind(FoxInCloud).delay(FoxInCloud.gridRowChangeDelay, 'wAfterRowChange', $('dtcadd_scx-grid_1'), value); } else FoxInCloud.gridMethod('wAfterRowChange', $('dtcadd_scx-grid_1'), value); } this.setRowClicked(false, row); }; oGrid.onCellValidating = function(text, col, row){ var result; col = parseInt(col, 10); switch (col){ case 0: result = FoxInCloud.gridEditEvent('blur', $('dtcadd_scx-grid_1'), text, 'dtcadd_scx-grid_1-column1-text1', true); break; case 1: result = FoxInCloud.gridEditEvent('blur', $('dtcadd_scx-grid_1'), text, 'dtcadd_scx-grid_1-column2-text1', true); break; } var cols = this.getColumnCount(), rows = this.getRowCount(), done = false; col++; while (row < rows && !done) { if (this.getCellEditable(col,row)) { this.setSelectedColumns([col]); this.setSelectedRows([row]); this.setCurrentColumn(col); this.setCurrentRow(row); done = true; } else { col++; if (col >= cols){ col = 0; row++; } } } return result; };oGrid.onCellEditStarting = function(text, col, row){ var result; col = parseInt(col, 10); switch (col){ case 0: result = FoxInCloud.gridEvent('focus', $('dtcadd_scx-grid_1'), text, 'dtcadd_scx-grid_1-column1-text1', true); break; } return result; }; oGrid.onKeyBackspace = function(event){ event = Event.extend(event); if (!event.findElement('input')) { this.startCellEdit(''); event.stop(); } }; oGrid.defineRowProperty('tuRow', null); var srp = oGrid.setRowProperty.bind(oGrid); srp = null; oGrid.disabled = true; oGrid.setSelectedRows([-1]); oGrid.setSelectedRows([-1]); oGrid.setCurrentRow(-1); oGrid.disabled = false; }} )(); $('dtcadd_scx-grid_1').observe('blur', FoxInCloud.DOMEvent.bind(FoxInCloud)); $('dtcadd_scx-buttonprev').observe('blur', FoxInCloud.DOMEvent.bind(FoxInCloud)).observe('click', FoxInCloud.DOMEvent.bind(FoxInCloud)).observe('focus', FoxInCloud.DOMEvent.bind(FoxInCloud)).observe('mouseup', FoxInCloud.DOMEvent.bind(FoxInCloud)); $('dtcadd_scx-buttonnext').observe('blur', FoxInCloud.DOMEvent.bind(FoxInCloud)).observe('click', FoxInCloud.DOMEvent.bind(FoxInCloud)).observe('focus', FoxInCloud.DOMEvent.bind(FoxInCloud)).observe('mouseup', FoxInCloud.DOMEvent.bind(FoxInCloud)); $('dtcadd_scx-textbox_output1').observe('blur', FoxInCloud.DOMEvent.bind(FoxInCloud)).observe('focus', FoxInCloud.DOMEvent.bind(FoxInCloud)); $('dtcadd_scx-textbox_output1').readOnly=true; $('dtcadd_scx').wuValue = null; FoxInCloud.documentInit('dtcadd_scx');/* -- / Generated on 02/06/13 07:20:06 AM by FoxInCloud version 1.265 *//
Tuvia,
This js was generated in development mode, so many events are implemented in HTML ...
could you either provide HTML for this form or switch to production mode and provide javascript (in production mode all events are implemented in javascript)
the best IMO would be to have an URL where we can test from ...
thanks
click, maybe the js will help :
/* Generated on 02/04/13 12:08:56 PM by FoxInCloud version 1.265 -- *// (function(){var oGrid = $('dtcadd_scx-grid_1');Object.extend(oGrid, {oGrid: new AW.UI.Grid, oTable: new AW.XML.Table}); oGrid.oGrid.defineControlProperty('DataUpdate', false); var oTable = oGrid.oTable; with (oGrid.oGrid){ /* -- Grid_1 (Grid) -- *// setSelectorWidth(10); getSelectorTemplate().setStyle('font-weight','bold'); setRowCount(0); setSelectionMode('single-cell'); setStyle('background-color','#FFFFFF'); setColumnCount(2); setControlDisabled(false); setStyle('font-family','Courier New'); setStyle('font-size','9pt'); setStyle('color','#000000'); setHeaderHeight(19); setSize(undefined,288); setSelectorVisible(false); setRowHeight(23); setScrollBars('both'); setSize(276,undefined); setColumnIndices([0,1]); with (getCellTemplate()){ setStyle('cursor','inherit'); }/* -- Column1 (Column) -- *// setColumnResizable(true,0); setColumnWidth(149+1,0);/* -- Header1 (Header) -- *// setHeaderText('Timetype',0); with (getHeaderTemplate(0)){ setStyle('text-align','left'); setStyle('background-color','#F0F0F0'); setStyle('font-size','9pt'); setClass('text','normal'); }/* -- Text1 (Textbox) -- *// setCellEditable(true,0); with (getCellTemplate(0)){ setStyle('text-align','left'); setStyle('font-family','Arial'); }/* -- Column2 (Column) -- *// setColumnResizable(true,1); setColumnWidth(75+1,1);/* -- Header1 (Header) -- *// setHeaderText('Timeqty',1); with (getHeaderTemplate(1)){ setStyle('text-align','left'); setStyle('background-color','#F0F0F0'); setStyle('font-size','9pt'); setClass('text','normal'); }/* -- Text1 (Textbox) -- *// var fmt = new AW.Formats.Number; fmt.setTextFormat('###'); setCellFormat(fmt, 1); setCellEditable(true,1); with (getCellTemplate(1)){ setStyle('text-align','right'); setStyle('font-family','Arial'); } setCellModel(oTable); setVirtualMode(false); with(oTable){ setURL("Temp/dtcadd_scx-grid_1.xml"); setAsync(false); request(); } } oGrid.oGrid.setCellModel(oGrid.oTable); oGrid.update(oGrid.oGrid); oGrid = oGrid.oGrid; with (oGrid) { /* Events *// defineRowProperty('Clicked', false); oGrid.onRowMouseDown = function(event, row){this.setRowClicked(true, row)}; oGrid.onRowMouseUp = function(event, row){this.setRowClicked(false, row)}; oGrid.onCurrentRowChanged = function(row){ var value = this.getRowProperty('tuRow', row);if (!(this.disabled || value === null)){if (!this.getRowClicked(row) && FoxInCloud.gridRowChangeDelay > 0){if (this.nTO) window.clearTimeout(this.nTO);this.nTO = FoxInCloud.gridMethod.bind(FoxInCloud).delay(FoxInCloud.gridRowChangeDelay, 'wAfterRowChange', $('dtcadd_scx-grid_1'), value); }else FoxInCloud.gridMethod('wAfterRowChange', $('dtcadd_scx-grid_1'), value); }this.setRowClicked(false, row); }; oGrid.onCellValidating = function(text, col, row){ var result; col = parseInt(col, 10); switch (col){case 0: result = FoxInCloud.gridEditEvent('blur', $('dtcadd_scx-grid_1'), text, 'dtcadd_scx-grid_1-column1-text1', true); break;case 1: result = FoxInCloud.gridEditEvent('blur', $('dtcadd_scx-grid_1'), text, 'dtcadd_scx-grid_1-column2-text1', true); break; } var cols = this.getColumnCount(), rows = this.getRowCount(), done = false; col++;while (row < rows && !done) {if (this.getCellEditable(col,row)) {this.setSelectedColumns([col]);this.setSelectedRows([row]);this.setCurrentColumn(col);this.setCurrentRow(row); done = true; }else { col++;if (col >= cols){ col = 0; row++; } } }return result; }; oGrid.onCellEditStarting = function(text, col, row){ var result; col = parseInt(col, 10);switch (col){case 0: result = FoxInCloud.gridEvent('focus', $('dtcadd_scx-grid_1'), text, 'dtcadd_scx-grid_1-column1-text1', true); break; }return result; }; oGrid.onKeyBackspace = function(event){ event = Event.extend(event);if (!event.findElement('input')){this.startCellEdit(''); event.stop(); } };oGrid.defineRowProperty('tuRow', null); var srp = oGrid.setRowProperty.bind(oGrid); srp = null; oGrid.disabled = true; oGrid.setSelectedRows([-1]); oGrid.setSelectedRows([-1]); oGrid.setCurrentRow(-1); oGrid.disabled = false; }})(); $('dtcadd_scx-textbox_output1').readOnly=true; FoxInCloud.documentInit('dtcadd_scx');/* -- / Generated on 02/04/13 12:08:56 PM by FoxInCloud version 1.265 *//
Tuvia,
Could you provide the event where this occurs? grid.click()?
Could you also provide the form's generated javascript.
do you think of a way we could reproduce this issue?
thanks,
I have not been able to resolve this. I have grid level code and in http://west-wind.com/wwThreads/default.asp?Thread=3JV0QVEU2&MsgId=3K3002XPR
you said "'aw37' is the ID of the main container of the javascript grid - I confirm FAS has a bug here, will be fixed in next version to support grid-level events."
Was that fixed? I have the latest 1.265 version.
how does this new version go?
Is it quick for you to tell me what changed in the install in the last 3 days?
just sent you an update, hope it will fix your issue
otherwise please allow incoming HTTP requests on your dev machine so that I can test (see your WAN router / NAT doc if needed)
A few weeks ago you sent me new awgrd.dbf. It was working fine. Yesterday I installed the latest 1.26 from your ftp site over the 1.26 that was already there. Can't think of what else.
i might have an idea if you could remind what might have changed recently ...
Uh oh, sounds like I am the only one saying this. I do not have any public URLs, I can try and set one up asap. Do you have any ideas in the meantime?
any URL to test that?
The old problem I saw here is back in my latest versiin: click anywhere in any grid field and fic tries to run a form/class aw37. Does not matter whether gtid is dynmic or not. Simplest grid.
All grids in all my apps, about 200 all together, now do not work and produce this error.
First it seems wafterrowchange fires, then it looks for comething callsed aw37 as the click method, so we get from awajax
. . ..target form csannot be found
form 'aw36'
method or property: click
-- thn (FoxInCloud)