Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0027085Openbravo ERPB. User interfacepublic2014-07-15 16:102014-09-25 11:30
dbaz 
dbaz 
highminoralways
closedfixed 
5
 
3.0PR14Q4 
alostale
Core
No
0027085: Add a level image clientClass component
Add a level image component. This component pretends to be a more visual solution for representing scale of values.

In the first implementation, the component will accept 5 status.
By default it will translate values from 0 to 5 to each corresponding level image
.
No tags attached.
Issue History
2014-07-15 16:10dbazNew Issue
2014-07-15 16:10dbazAssigned To => dbaz
2014-07-15 16:10dbazModules => Core
2014-07-15 16:10dbazTriggers an Emergency Pack => No
2014-07-15 16:18dbazNote Added: 0068646
2014-07-15 16:18dbazNote Added: 0068647
2014-07-15 16:18dbazReview Assigned To => alostale
2014-07-15 16:19dbazNote Edited: 0068647bug_revision_view_page.php?bugnote_id=0068647#r6055
2014-07-15 16:24hgbotCheckin
2014-07-15 16:24hgbotNote Added: 0068648
2014-07-15 16:24hgbotStatusnew => resolved
2014-07-15 16:24hgbotResolutionopen => fixed
2014-07-15 16:24hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/fae30caac4cc20cf76a4cf859309a262ad0bd976 [^]
2014-07-18 11:50alostaleNote Added: 0068726
2014-07-18 11:50alostaleStatusresolved => closed
2014-07-18 11:50alostaleFixed in Version => 3.0PR14Q4
2014-07-30 01:38hgbotCheckin
2014-07-30 01:38hgbotNote Added: 0068965
2014-08-08 00:16hgbotCheckin
2014-08-08 00:16hgbotNote Added: 0069120
2014-08-08 18:53hudsonbotCheckin
2014-08-08 18:53hudsonbotNote Added: 0069164
2014-08-08 18:54hudsonbotCheckin
2014-08-08 18:54hudsonbotNote Added: 0069236
2014-08-08 18:54hudsonbotCheckin
2014-08-08 18:54hudsonbotNote Added: 0069271
2014-09-23 10:27hgbotCheckin
2014-09-23 10:27hgbotNote Added: 0070269
2014-09-25 11:30hudsonbotCheckin
2014-09-25 11:30hudsonbotNote Added: 0070350

Notes
(0068646)
dbaz   
2014-07-15 16:18   
The new component is: OBLevelImg

The list of values to be translated to each one of the img status is, by default:

  valuesList: [0, 1, 2, 3, 4]

but, of course, the developer can overwrite the list.
(0068647)
dbaz   
2014-07-15 16:18   
(edited on: 2014-07-15 16:19)
A possible way to test it, although with no sense from the usability point of view, is:

As "System Administrator"
Go to "Windows, Tabs and Fields"
Select the "Sales Invoice" window
Select the "Header" child tab
Select the "Currency" child tab

In the "Currency" field set the following as "clientClass":
OBLevelImg {"valuesList":["dummy1", "100", "dummy2", "dummy3", "102"]}

Save and logout

As "Openbravo Admin"
Go to "Sales Invoice" window
Notice that depending if the "Currency" is USD or EUR, you will see a different image for each case.

(0068648)
hgbot   
2014-07-15 16:24   
Repository: erp/devel/pi
Changeset: fae30caac4cc20cf76a4cf859309a262ad0bd976
Author: David Baz Fayos <david.baz <at> openbravo.com>
Date: Tue Jul 15 16:23:43 2014 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/fae30caac4cc20cf76a4cf859309a262ad0bd976 [^]

Fixed issue 27085: Added 'OBLevelImg' component
that should be used as a 'clientClass' component.
It will translate the values of the field into a level img that can go from 0 to 5.
If you want to change the scale values you have to overwrite the component, and do solutions like:
  "valuesList":["none", "weak", "small", "medium", "high"]

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-canvas.js
A modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/images/form/levelImg_0_4.png
A modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/images/form/levelImg_1_4.png
A modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/images/form/levelImg_2_4.png
A modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/images/form/levelImg_3_4.png
A modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/images/form/levelImg_4_4.png
---
(0068726)
alostale   
2014-07-18 11:50   
code reviewed
(0068965)
hgbot   
2014-07-30 01:38   
Repository: erp/devel/pi
Changeset: 7ad630b1df1f129b00f4cf29ee3ce7bb716e5707
Author: David Baz Fayos <david.baz <at> openbravo.com>
Date: Wed Jul 30 01:37:56 2014 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/7ad630b1df1f129b00f4cf29ee3ce7bb716e5707 [^]

Related to issue 27083, Related to issue 27085, Related to issue 26635:
* Now clientClass OBGridFromButton used as editorType doesn't span the row width
* 'isShownInGridEdit' now it works ok in grid view (pick and execute grids still pending)
* 'canEdit' can be overwritten by specifying it in the clientClass widget

---
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
---
(0069120)
hgbot   
2014-08-08 00:16   
Repository: erp/devel/pi
Changeset: e5b0eccfb86ca3d325b9d4ec5e936f39ace06b20
Author: David Baz Fayos <david.baz <at> openbravo.com>
Date: Fri Aug 08 00:16:26 2014 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/e5b0eccfb86ca3d325b9d4ec5e936f39ace06b20 [^]

Related to issue 27085: Added to OBLevelImg the case when no level is specified

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-canvas.js
---
(0069164)
hudsonbot   
2014-08-08 18:53   
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/4450016dee64 [^]
Maturity status: Test
(0069236)
hudsonbot   
2014-08-08 18:54   
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/4450016dee64 [^]
Maturity status: Test
(0069271)
hudsonbot   
2014-08-08 18:54   
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/4450016dee64 [^]
Maturity status: Test
(0070269)
hgbot   
2014-09-23 10:27   
Repository: erp/devel/pi
Changeset: 5c1c196b704e4854aeed0714cd45e3d034e127f9
Author: David Baz Fayos <david.baz <at> openbravo.com>
Date: Tue Aug 12 19:41:57 2014 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/5c1c196b704e4854aeed0714cd45e3d034e127f9 [^]

Related to issue 27085: Added defaut 'blank' image

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-canvas.js
---
(0070350)
hudsonbot   
2014-09-25 11:30   
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/63604e8e17b7 [^]
Maturity status: Test