Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0019730Openbravo ERPA. Platformpublic2012-02-10 22:192012-03-02 15:37
mtaal 
AugustoMauch 
normalminorhave not tried
closedfixed 
5
 
3.0MP9 
Core
No
0019730: Focus should start in first filter editor field
When opening a window the focus/cursor should initially be placed in the first field of the filtereditor. This is much better for usability.
Open for example the product category window, it is not clear where the focus is, it needs to be placed in the first filter field.
No tags attached.
Issue History
2012-02-10 22:19mtaalNew Issue
2012-02-10 22:19mtaalAssigned To => AugustoMauch
2012-02-10 22:19mtaalModules => Core
2012-02-14 15:12hgbotCheckin
2012-02-14 15:12hgbotNote Added: 0045110
2012-02-14 15:12hgbotStatusnew => resolved
2012-02-14 15:12hgbotResolutionopen => fixed
2012-02-14 15:12hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/cdcbb0c7f47915c3cfb6b265458f36cd16463da3 [^]
2012-02-14 15:24AugustoMauchNote Added: 0045112
2012-02-14 15:28AugustoMauchNote Added: 0045113
2012-02-14 16:16hgbotCheckin
2012-02-14 16:16hgbotNote Added: 0045115
2012-02-14 17:43AugustoMauchNote Added: 0045121
2012-02-14 21:43dbazNote Added: 0045133
2012-02-14 21:43dbazStatusresolved => new
2012-02-14 21:43dbazResolutionfixed => open
2012-02-15 09:51hgbotCheckin
2012-02-15 09:51hgbotNote Added: 0045136
2012-02-15 10:53hgbotCheckin
2012-02-15 10:53hgbotNote Added: 0045140
2012-02-15 10:53hgbotStatusnew => resolved
2012-02-15 10:53hgbotResolutionopen => fixed
2012-02-15 10:53hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/cdcbb0c7f47915c3cfb6b265458f36cd16463da3 [^] => http://code.openbravo.com/erp/devel/pi/rev/cde4b46243eb91b970911291f032d088fc3fe730 [^]
2012-02-15 14:05dbazNote Added: 0045152
2012-02-15 14:05dbazStatusresolved => closed
2012-02-15 14:05dbazFixed in Version => 3.0MP9
2012-03-02 15:37hudsonbotCheckin
2012-03-02 15:37hudsonbotNote Added: 0045848
2012-03-02 15:37hudsonbotCheckin
2012-03-02 15:37hudsonbotNote Added: 0045849
2012-03-02 15:37hudsonbotCheckin
2012-03-02 15:37hudsonbotNote Added: 0045851
2012-03-02 15:37hudsonbotCheckin
2012-03-02 15:37hudsonbotNote Added: 0045852

Notes
(0045110)
hgbot   
2012-02-14 15:12   
Repository: erp/devel/pi
Changeset: cdcbb0c7f47915c3cfb6b265458f36cd16463da3
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Tue Feb 14 15:10:03 2012 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/cdcbb0c7f47915c3cfb6b265458f36cd16463da3 [^]

Fixes issue 19730: Focus now stars in first filter editor field

---
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
---
(0045112)
AugustoMauch   
2012-02-14 15:24   
There was already a function to focus the first filter editor field, but it was not working properly, because the field being focused was the first of filterEditor.getEditForm().getItems(), which is the checkbox field to select and deselect registers.

The item focused should be one that the user can actually use to filter (e.g., whose editorType is not 'StaticTextItem').

It was needed to call the focusInFirstFilterEditor from ob-view-grid.setViewState to ensure that after applying a saved view the proper item was focused.

If a view is in form view and it is switched to grid view, the focus goes to the register that was opened in form view, no to the first filter editor field. I think this is the expected behaviour.
(0045113)
AugustoMauch   
2012-02-14 15:28   
Test Plan:
- Open any window. The item focused should be the first filter editor field.
- Open any window, modify the filters and save the view. After loading the view the item focused should be the first filter editor field, regardless of the open view type (grid or form).
- Open any window and double click on a register. The form view should open. Close that view. The grid view should open, and the register that selected should be focused.

I think this is not a risky fix.
(0045115)
hgbot   
2012-02-14 16:16   
Repository: erp/devel/pi
Changeset: 215fbb471eaa1a6ddf4cb214d6510c05756c91f5
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Tue Feb 14 16:15:19 2012 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/215fbb471eaa1a6ddf4cb214d6510c05756c91f5 [^]

Related to issue 19730: Removes fix because a defect was detected

---
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
---
(0045121)
AugustoMauch   
2012-02-14 17:43   
After further investigation I have found that the fix had not caused a problem, but just shown a prior strange underlying behaviour.

Try this:
- Open the window Business Partner (the focused item is nowhere to be seen)
- Select the first register
- Click on the title of the subtab Customer
- Click on the title of the header tab.

Apparently the focus is on the selected register, but it actually is not (try using the arrow keys to move among the registers). The focus is on the same hidden item where it was when opening the window.

After my fix is applied, when a window is opened the focus goes to the first filter item. After following the steps stated before, the focus goes again to this same item.

I have been talking with Ivan and we have agreed that the correct behaviour would be to focus the selected register after clicking on the header tab title. I am going to implement this functionality, and after I have finished I will enable again the code to select the first filter item when a window is opened.
(0045133)
dbaz   
2012-02-14 21:43   
It still fails
(0045136)
hgbot   
2012-02-15 09:51   
Repository: erp/devel/pi
Changeset: fd30d7d690723b2efb97928c1112f4f6c9f58d23
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Wed Feb 15 09:46:47 2012 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/fd30d7d690723b2efb97928c1112f4f6c9f58d23 [^]

Related to issue 19730: The focus goes to the selected record after clicking on a tab title

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-view.js
---
(0045140)
hgbot   
2012-02-15 10:53   
Repository: erp/devel/pi
Changeset: cde4b46243eb91b970911291f032d088fc3fe730
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Wed Feb 15 10:25:57 2012 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/cde4b46243eb91b970911291f032d088fc3fe730 [^]

Fixes issue 19730: Focus now stars in first filter editor field

---
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
---
(0045152)
dbaz   
2012-02-15 14:05   
Reviewed @ changeset: 15482 - 6b84612a26a3
(0045848)
hudsonbot   
2012-03-02 15:37   
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/544d64e0c159 [^]

Maturity status: Test
(0045849)
hudsonbot   
2012-03-02 15:37   
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/544d64e0c159 [^]

Maturity status: Test
(0045851)
hudsonbot   
2012-03-02 15:37   
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/544d64e0c159 [^]

Maturity status: Test
(0045852)
hudsonbot   
2012-03-02 15:37   
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/544d64e0c159 [^]

Maturity status: Test