Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0006027Openbravo ERP09. Financial managementpublic2008-11-18 16:572009-02-19 13:52
plujan 
gorka_gil 
highminorhave not tried
closedfixed 
20
pi 
pi 
Core
No
0006027: [QA-alpha-r1] I get an error after deleting a G/L Item
I created a wrong G/L Item. I delete it. After the message of success deletion, if I stay a while, I get an error message:
"Error: The data can ve incomplete because the server not replayed at specified time. Check the connection with the server". See attach.

The message is not correct since I still have connection and I am able to keep using the application as well.
Create a new G/L Item
Delete it
After success message, wait 30 seconds.
platform1_sprint1
jpg R250alpha_BUG_DeletingGLItemError.JPG (87,973) 2008-11-18 16:57
https://issues.openbravo.com/file_download.php?file_id=432&type=bug
jpg
Issue History
2008-11-18 16:57plujanNew Issue
2008-11-18 16:57plujanAssigned To => gorka_gil
2008-11-18 16:57plujansf_bug_id0 => 2309765
2008-11-18 16:57plujanFile Added: R250alpha_BUG_DeletingGLItemError.JPG
2008-11-18 16:57plujanRegression testing => No
2008-11-18 16:58plujanStatusnew => scheduled
2008-11-18 16:58plujanfix_in_branch => trunk
2008-11-27 15:27gorka_gilNote Added: 0010778
2008-12-15 10:59gorka_gilTag Attached: platform1_sprint1
2008-12-16 19:57svnbotCheckin
2008-12-16 19:57svnbotNote Added: 0011455
2008-12-16 19:57svnbotStatusscheduled => resolved
2008-12-16 19:57svnbotResolutionopen => fixed
2008-12-16 19:57svnbotsvn_revision => 11276
2009-02-19 13:52sureshbabuStatusresolved => closed
2009-02-19 13:52sureshbabuNote Added: 0013739
2009-02-19 13:52sureshbabuFixed in Version => trunk

Notes
(0010778)
gorka_gil   
2008-11-27 15:27   
This bug happens when you delete a record from any grid and you wait 15 seconds.

This bug has appeared when was solved the issue 482, that show a message in grid timeout.

The actual problem is when the grid set many timeouts (like occur when its's deleted a record), but the responses take more time than the time for set other tiemout.

This is a problem because the timeout ID is stored in one variable instead an array.

An example:
  this.timeoutHandler = setTimeout("handleTimedOut", 15);
timeoutHandler has value 32;
  ...
  this.timeoutHandler = setTimeout("handleTimedOut", 15);
timeoutHandler has value 16;

after this the responses to ajaxcall come back and the grid clears the timeouts but only has stored the last value, and makes a twice the same clearTimeout.

  clearTimeout( this.timeoutHandler ); // timeoutHandler with value 16 instead 32
  clearTimeout( this.timeoutHandler ); // timeoutHandler with value 16

The first timeout is not cleared and when finish shows the message.


Two proposed solution:

1. store the timeouts ids in an array
2. controls when timeouts occurs in a different way than the standard handleTimedOut of the grid
(0011455)
svnbot   
2008-12-16 19:57   
Repository: openbravo
Revision: 11276
Author: gorka_gil
Date: 2008-12-16 19:57:20 +0100 (Tue, 16 Dec 2008)

Fixed bug 6027 when deleting a row in a datagrid, after 15s don't show an error message.
Now datagrid has an array for timeouts that permits make a clearTimeout of all timeouts.

---
U trunk/web/js/openbravo/widget/DataGrid.js
---

https://dev.openbravo.com/websvn/openbravo/?rev=11276&sc=1 [^]
(0013739)
sureshbabu   
2009-02-19 13:52   
Retested in context 79.125.56.185/openbravotrunk