Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0022901Openbravo ERPA. Platformpublic2013-01-26 16:202013-02-01 22:29
dbaz 
dbaz 
highmajoralways
closedfixed 
5
 
3.0MP20 
mtaal
Core
No
0022901: Add "clientClass" field to QueryList widget and standarize its definition way
Currently regular windows have defined a "clientClass" attribute that lets them render a canvas in a cell in the grid view. The widget to render will be the one defined in the "clientClass".

The idea is do the same in QueryList widget "Query -> Column" definition.

Right now for OBGrid (used by QuertList, AlertGrid, P%E, ...) there is only a "isLink" attribute that let introduce a canvas that shows a link that emulates a "cellClick". The idea is maintain it for backward compatibility purposes, but also add the "clientClass" implementation for all grids.

Also, since OBGridView implements its own "clientClass" handler, it should be moved (and extended) to OBGrid to let all grids use it in the same way.
See the comments.
No tags attached.
related to feature request 00191223.0MP6 closed mtaal Support calculated fields 
related to feature request 0022902 closed dbaz Create a "Print" link button to be used within QueryList widget 
Issue History
2013-01-26 16:20dbazNew Issue
2013-01-26 16:20dbazAssigned To => dbaz
2013-01-26 16:20dbazModules => Core
2013-01-26 16:20dbazTriggers an Emergency Pack => No
2013-01-26 16:21dbazRelationship addedrelated to 0019122
2013-01-26 16:29dbazNote Added: 0055879
2013-01-26 16:47dbazNote Edited: 0055879bug_revision_view_page.php?bugnote_id=0055879#r4303
2013-01-26 16:48dbazNote Edited: 0055879bug_revision_view_page.php?bugnote_id=0055879#r4304
2013-01-26 17:40dbazRelationship addedrelated to 0022902
2013-01-26 21:52dbazReview Assigned To => mtaal
2013-01-26 21:53hgbotCheckin
2013-01-26 21:53hgbotNote Added: 0055881
2013-01-26 21:53hgbotStatusnew => resolved
2013-01-26 21:53hgbotResolutionopen => fixed
2013-01-26 21:53hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/ef2e15e1a780d66ea054d5af701f734bab11343a [^]
2013-01-27 00:41hgbotCheckin
2013-01-27 00:41hgbotNote Added: 0055883
2013-01-27 00:56hgbotCheckin
2013-01-27 00:56hgbotNote Added: 0055884
2013-01-27 11:34hudsonbotCheckin
2013-01-27 11:34hudsonbotNote Added: 0055886
2013-01-27 11:34hudsonbotCheckin
2013-01-27 11:34hudsonbotNote Added: 0055888
2013-01-27 11:34hudsonbotCheckin
2013-01-27 11:34hudsonbotNote Added: 0055889
2013-01-28 09:42mtaalNote Added: 0055893
2013-01-28 09:42mtaalStatusresolved => closed
2013-01-28 09:42mtaalFixed in Version => 3.0MP20
2013-01-31 22:52hgbotCheckin
2013-01-31 22:52hgbotNote Added: 0056032
2013-02-01 22:29hudsonbotCheckin
2013-02-01 22:29hudsonbotNote Added: 0056105

Notes
(0055879)
dbaz   
2013-01-26 16:29   
(edited on: 2013-01-26 16:48)
Risk: medium


1) Test that previous canvas in grid are still working ok:

As "Openbravo Admin"
* Go to "Sales Order"
* Notice that the latest grid columns "Delivery Status" and "Invoice Status" are still shown as before. Play also with add row/new row and ensure that the look and feel is the same than before

As "Openbravo Admin"
* Go to "Return from customer"
* Create new header
* Click "Pick/Edit Lines"
* Add any line with any value
* Notice that the columns "Returned Quantity", "Received Quantity", "Invoiced Quantity", "Line Net Amout" colums are still shown as before.

As "Openbravo Admin"
* Go to "Alert Management" window
* Ensure that grid links are shown and works as before

As "Openbravo Admin"
* Add "Invoices to collect" widget
* Ensure that links are shown and works as before


2) Test that "clientClass" field in "Widget -> Query -> Column" works

As "System Administrator"
* Go to "Widget" window
* Select record with "Widget Title": "Invoices to collect"
* Go to "Query" subtab
* Go to "Column" subtab
* Go to record "Amount" and add "OBAddPercentageSign" in the "Clientclass" input. Save
* Go to record "Currency" and add "OBAddPercentageSign" in the "Clientclass" input. Save

As "Openbravo Admin"
* Add "Invoices to collect" widget
* Ensure that "Amount" and "Currency" columns show the "%" sign in the text

(0055881)
hgbot   
2013-01-26 21:53   
Repository: erp/devel/pi
Changeset: ef2e15e1a780d66ea054d5af701f734bab11343a
Author: David Baz Fayos <david.baz <at> openbravo.com>
Date: Sat Jan 26 17:16:16 2013 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/ef2e15e1a780d66ea054d5af701f734bab11343a [^]

Fixed issue 22901: Added 'clientClass' to OBGrid
to let use canvas based items in grids

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/alert-management/ob-alert-grid.js
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-canvas.js
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-grid.js
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
M modules/org.openbravo.client.querylist/src-db/database/model/tables/OBCQL_QUERY_COLUMN.xml
M modules/org.openbravo.client.querylist/src-db/database/sourcedata/AD_COLUMN.xml
M modules/org.openbravo.client.querylist/src-db/database/sourcedata/AD_FIELD.xml
M modules/org.openbravo.client.querylist/src/org/openbravo/client/querylist/QueryListComponentProvider.java
M modules/org.openbravo.client.querylist/src/org/openbravo/client/querylist/QueryListUtils.java
M modules/org.openbravo.client.querylist/web/org.openbravo.client.querylist/js/ob-querylist-widget.js
A modules/org.openbravo.client.querylist/web/org.openbravo.client.querylist/js/ob-querylist-canvas-item.js
---
(0055883)
hgbot   
2013-01-27 00:41   
Repository: erp/devel/pi
Changeset: 16eca807e2a34fdac151926a35fb16676fc663e2
Author: David Baz Fayos <david.baz <at> openbravo.com>
Date: Sun Jan 27 00:38:37 2013 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/16eca807e2a34fdac151926a35fb16676fc663e2 [^]

Related to issue 22901: Added a way to define in the own widget
if it should be displayed or not if the row is in edit mode

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-grid.js
---
(0055884)
hgbot   
2013-01-27 00:56   
Repository: erp/devel/pi
Changeset: 8215f88cf6811e569c226de47ae913442d5832d7
Author: David Baz Fayos <david.baz <at> openbravo.com>
Date: Sun Jan 27 00:55:42 2013 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/8215f88cf6811e569c226de47ae913442d5832d7 [^]

Related to issue 22901: Changed var name

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-grid.js
---
(0055886)
hudsonbot   
2013-01-27 11:34   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/7b271be20db9 [^]

Maturity status: Test
(0055888)
hudsonbot   
2013-01-27 11:34   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/7b271be20db9 [^]

Maturity status: Test
(0055889)
hudsonbot   
2013-01-27 11:34   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/7b271be20db9 [^]

Maturity status: Test
(0055893)
mtaal   
2013-01-28 09:42   
Reviewed
(0056032)
hgbot   
2013-01-31 22:52   
Repository: erp/devel/pi
Changeset: f16520f2d3f1466dbae4afdbc0fe93e414dde841
Author: David Baz Fayos <david.baz <at> openbravo.com>
Date: Thu Jan 31 22:51:46 2013 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/f16520f2d3f1466dbae4afdbc0fe93e414dde841 [^]

Related to issue 22901: Improved clientClass properties settings

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-canvas.js
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-grid.js
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/utilities/ob-utilities.js
---
(0056105)
hudsonbot   
2013-02-01 22:29   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/b070aa80fc76 [^]

Maturity status: Test