Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0017316Openbravo ERPA. Platformpublic2011-05-23 17:152011-11-18 12:48
adrianromero 
mirurita 
normalmajorhave not tried
newopen 
5
3.0RC7 
 
Core
No
0017316: The "Loading" message of the IDL Import window does not disappear
When executing the process "Validate" or "Import" of the "Import" window of the Initial Data Load module the window becomes gray and the message "Loading" appears.

If there exists another "manual window" opened in another tab, this "Loading" window does not disappear and you have to close and open again the "Import" window. If there is not any other manual window it works properly.
* Install the Initial Data Load Module and add its associated dataset.

As "Openbravo Admin"
* Go to "Enterprise Module Management"
* Select (mark the check) "Initial Data Load" and press "OK"

As "Openbravo Admin"
* Open a manual window. For example the same "Enterprise module management" window.
* Open the IDL "Import" window
* Select a sample csv file (there are some in the resources folder of the IDL module), select an entity and press "Validate"
* See that the Loading message does not disappear.

The cause is probably in the generated destination page "org.openbravo.idl.form/IDL_import.html" that invokes the javascript function "getFrame('appFrame').setProcessingMode('window', false) this javascript function fails because there are two manual windows open.

No tags attached.
depends on backport 0017317 closed alostale The "Loading" message of the IDL Import window does not desapear 
Issue History
2011-05-23 17:15adrianromeroNew Issue
2011-05-23 17:15adrianromeroAssigned To => alostale
2011-05-23 17:15adrianromeroModules => Core
2011-05-23 17:16adrianromeroIssue cloned0017317
2011-05-23 17:16adrianromeroRelationship addeddepends on 0017317
2011-05-23 17:17adrianromeroSummaryThe "Loading" message of the IDL Import window does not desapear => The "Loading" message of the IDL Import window does not disappear
2011-05-23 17:17adrianromeroDescription Updatedbug_revision_view_page.php?rev_id=2086#r2086
2011-05-23 17:17adrianromeroSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=2088#r2088
2011-06-02 10:53dmitry_mezentsevTarget Version3.0MP0 => 3.0MP1
2011-06-22 19:57dmitry_mezentsevTarget Version3.0MP1 => 3.0MP2
2011-07-18 16:55alostaleAssigned Toalostale => dbaz
2011-07-20 12:32dbazTarget Version3.0MP2 => 3.0MP3
2011-08-31 13:52dbazTarget Version3.0MP3 =>
2011-11-17 12:18dbazSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=2912#r2912
2011-11-18 12:48dbazNote Added: 0042983
2011-11-18 12:48dbazTypedefect => design defect
2011-11-18 12:48dbazAssigned Todbaz => mirurita

Notes
(0042983)
dbaz   
2011-11-18 12:48   
As it is developed, a new window appears just for remove the "Loading..." logo and refresh the page.

It should be refactored. Two different approaches:

* Complex solution: Whole refactor of the window using new OB3 technology

* Fast solution: Change just the validation call to be an ajax call instead of a classic submit call. This ajax call "callback" should do the "Loading..." removal and the page refresh
More info about how to use the ajax call http://wiki.openbravo.com/wiki/ERP_2.50:Developers_Guide/Concepts/UI/Javascript_Utilities#Ajax_calls [^]