Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0012364Openbravo ERPA. Platformpublic2010-02-19 16:322010-04-19 21:13
gmauleon 
alostale 
immediateminoralways
closedfixed 
5
 
2.50MP14 
Core
No
0012364: JS messages not working together with modules
-When a user creates a nes JS message in the application to be used with this JS method ( showJSMessage(7);) needs to enter a new record in the messages tables using the search key JS followed with the code.

-In the case of the modules the systems does not allow to enter for instance JS77 you need to add the DB prefix -> EXAMPLE_JS77

-Afterward this message is not working
-Create a new JS message within a module with for instance the code 77
     EXAMPLE_JS77
-Apply the call in the code.
     showJSMessage(77);

The message is not shown
No tags attached.
related to defect 0012560 closed mirurita Error message is too technical, in Add Paymnet window, when payment is processed after un selecting all the line items. 
Issue History
2010-02-19 16:32gmauleonNew Issue
2010-02-19 16:32gmauleonAssigned To => adrianromero
2010-02-22 12:57adrianromeroNote Added: 0024691
2010-02-22 12:57adrianromeroStatusnew => feedback
2010-02-22 13:36adrianromeroNote Added: 0024693
2010-02-22 13:36adrianromeroStatusfeedback => new
2010-02-22 13:36adrianromeroAssigned Toadrianromero => alostale
2010-02-22 15:40alostaleNote Added: 0024698
2010-02-22 15:40alostaleStatusnew => closed
2010-02-22 15:40alostaleResolutionopen => no change required
2010-02-23 00:01anonymoussf_bug_id0 =>
2010-02-23 17:18gmauleonNote Added: 0024755
2010-03-08 16:06jpabloaeTarget Version2.50MP13 => 2.50MP14
2010-03-10 18:30anonymoussf_bug_id => 2968091
2010-04-08 16:16gmauleonNote Added: 0025984
2010-04-08 16:16gmauleonStatusclosed => new
2010-04-08 16:16gmauleonResolutionno change required => open
2010-04-08 16:34miruritaRelationship addedrelated to 0012560
2010-04-08 17:57hgbotCheckin
2010-04-08 17:57hgbotNote Added: 0025995
2010-04-08 17:57hgbotStatusnew => resolved
2010-04-08 17:57hgbotResolutionopen => fixed
2010-04-08 17:57hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/695c4b4aee0804f62e2655090a4c4621fc44d574 [^]
2010-04-13 12:20hgbotCheckin
2010-04-13 12:20hgbotNote Added: 0026131
2010-04-13 12:21dbazStatusresolved => closed
2010-04-19 21:13hudsonbotCheckin
2010-04-19 21:13hudsonbotNote Added: 0026438
2010-04-19 21:13hudsonbotCheckin
2010-04-19 21:13hudsonbotNote Added: 0026460

Notes
(0024691)
adrianromero   
2010-02-22 12:57   
If you define the error message as

EXAMPLE_JS77

Try to invoke it using:


showJSMessage(EXAMPLE_77);

Removing the JS string in the error message identifier.
(0024693)
adrianromero   
2010-02-22 13:36   
It still fails using showJSMessage(EXAMPLE_77);
(0024698)
alostale   
2010-02-22 15:40   
Note the message must be Confirmation type.

Then showJSMessage('EXAMPLE_JS77'); should work (note now it is an string, don't pass the parameter as a number).
(0024755)
gmauleon   
2010-02-23 17:18   
I've try it and seems not to be working I get the following JS error

Error: j[0].firstChild is null
Archivo de origen: http://localhost:8088/openbravo/web/js/messages.js [^]
Línea: 9
(0025984)
gmauleon   
2010-04-08 16:16   
I've tested the provided workaround and seems that is not working
(0025995)
hgbot   
2010-04-08 17:57   
Repository: erp/devel/pi
Changeset: 695c4b4aee0804f62e2655090a4c4621fc44d574
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Thu Apr 08 18:08:45 2010 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/695c4b4aee0804f62e2655090a4c4621fc44d574 [^]

fixed bug 12364: JS messages not working together with modules

---
M web/js/messages.js
---
(0026131)
hgbot   
2010-04-13 12:20   
Repository: erp/devel/pi
Changeset: 92fd7db0c95dca0b5110272e27977091b4e5f8ca
Author: David Baz Fayos <david.baz <at> openbravo.com>
Date: Tue Apr 13 12:32:40 2010 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/92fd7db0c95dca0b5110272e27977091b4e5f8ca [^]

Related to issue 12364: Fixed execution url to be able to execute it in any depth

---
M src/org/openbravo/erpCommon/security/Login_F1.html
M web/js/messages.js
M web/js/utils.js
---
(0026438)
hudsonbot   
2010-04-19 21:13   
A changeset related to this issue has been promoted to main after passing a series of tests and an OBX has been generated:

Changeset: http://code.openbravo.com/erp/devel/main/rev/695c4b4aee08 [^]
Merge Changeset: http://code.openbravo.com/erp/devel/main/rev/91d98bda46c1 [^]
Tests: http://builds.openbravo.com/view/devel-int/ [^]
OBX: http://builds.openbravo.com/erp/core/obx/OpenbravoERP-2.50CI.17088.obx [^]
(0026460)
hudsonbot   
2010-04-19 21:13   
A changeset related to this issue has been promoted to main after passing a series of tests and an OBX has been generated:

Changeset: http://code.openbravo.com/erp/devel/main/rev/92fd7db0c95d [^]
Merge Changeset: http://code.openbravo.com/erp/devel/main/rev/91d98bda46c1 [^]
Tests: http://builds.openbravo.com/view/devel-int/ [^]
OBX: http://builds.openbravo.com/erp/core/obx/OpenbravoERP-2.50CI.17088.obx [^]