Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0028231 | Openbravo ERP | B. User interface | public | 2014-11-19 19:17 | 2016-10-24 10:06 |
|
Reporter | caristu | |
Assigned To | AugustoMauch | |
Priority | high | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | pi | |
Target Version | 3.0PR15Q2 | Fixed in Version | 3.0PR15Q1 | |
Merge Request Status | |
Review Assigned To | alostale |
OBNetwork customer | |
Web browser | |
Modules | Core |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0028231: Focus is placed automatically on the last field under some circumnstances |
Description | Focus is placed automatically on the last field of a tab, if this tab has the scroll bar on the right and all its fields are in read-only. |
Steps To Reproduce | Login as F&B Admin
1) Go to the [Unit of Measure] tab and increase the Translation tab enough to have scrolling on the header (See attached)
2) Access on any register in form mode. Notice that the screen scrolls down automatically to the last field. |
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | related to | defect | 0034057 | | closed | NaroaIriarte | Wrong Tabulation Order in form fields in Organization window | related to | defect | 0028396 | 3.0PR15Q2 | closed | AugustoMauch | Focus is placed automatically on the field group (if any) having all the fields in read only mode |
|
Attached Files | ScrolledDown.png (51,518) 2014-11-19 19:18 https://issues.openbravo.com/file_download.php?file_id=7531&type=bug
|
|
Issue History |
Date Modified | Username | Field | Change |
2014-11-19 19:17 | caristu | New Issue | |
2014-11-19 19:17 | caristu | Assigned To | => dbaz |
2014-11-19 19:17 | caristu | File Added: ScrolledDown.png | |
2014-11-19 19:17 | caristu | Modules | => Core |
2014-11-19 19:17 | caristu | Resolution time | => 1422831600 |
2014-11-19 19:17 | caristu | Triggers an Emergency Pack | => No |
2014-11-19 19:18 | caristu | File Deleted: ScrolledDown.png | |
2014-11-19 19:18 | caristu | File Added: ScrolledDown.png | |
2014-11-19 19:18 | caristu | version | => pi |
2014-11-19 19:18 | caristu | Target Version | => 3.0PR15Q1 |
2014-11-19 19:18 | caristu | Assigned To | dbaz => AugustoMauch |
2014-11-19 19:18 | caristu | Issue Monitored: networkb | |
2014-11-26 11:30 | AugustoMauch | Issue Monitored: alostale | |
2014-11-26 11:30 | AugustoMauch | Review Assigned To | => alostale |
2014-11-26 11:39 | hgbot | Checkin | |
2014-11-26 11:39 | hgbot | Note Added: 0072024 | |
2014-11-26 11:39 | hgbot | Status | new => resolved |
2014-11-26 11:39 | hgbot | Resolution | open => fixed |
2014-11-26 11:39 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/a72704b89964c9dd369c422ccefeecca16e26551 [^] |
2014-12-01 13:18 | alostale | Note Added: 0072191 | |
2014-12-01 13:18 | alostale | Status | resolved => new |
2014-12-01 13:18 | alostale | Resolution | fixed => open |
2014-12-01 13:38 | egoitz | Target Version | 3.0PR15Q1 => 3.0PR15Q2 |
2014-12-01 18:37 | hgbot | Checkin | |
2014-12-01 18:37 | hgbot | Note Added: 0072217 | |
2014-12-01 18:37 | hgbot | Status | new => resolved |
2014-12-01 18:37 | hgbot | Resolution | open => fixed |
2014-12-01 18:37 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/devel/pi/rev/a72704b89964c9dd369c422ccefeecca16e26551 [^] => http://code.openbravo.com/erp/devel/pi/rev/c523abe0e8115d406c7e2515be7aef9d5209ce73 [^] |
2014-12-02 07:52 | alostale | Note Added: 0072222 | |
2014-12-02 07:52 | alostale | Status | resolved => closed |
2014-12-02 07:53 | alostale | Fixed in Version | => 3.0PR15Q1 |
2014-12-12 09:30 | caristu | Relationship added | related to 0028396 |
2014-12-30 23:26 | hudsonbot | Checkin | |
2014-12-30 23:26 | hudsonbot | Note Added: 0073144 | |
2014-12-30 23:26 | hudsonbot | Checkin | |
2014-12-30 23:26 | hudsonbot | Note Added: 0073160 | |
2016-10-24 10:06 | NaroaIriarte | Relationship added | related to 0034057 |
Notes |
|
(0072024)
|
hgbot
|
2014-11-26 11:39
|
|
Repository: erp/devel/pi
Changeset: a72704b89964c9dd369c422ccefeecca16e26551
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Wed Nov 26 11:38:42 2014 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/a72704b89964c9dd369c422ccefeecca16e26551 [^]
Fixes issue 28231: Form is not scrolled if it does not have any editable fields
The problem was that when switching from grid to form view, if the form view did not have any editable fields the focus would be placed in the first Audit field, and the scroll would be moved so that the Audit field is shown in the top of the screen. This would hide all the read only fields.
To fix this, when the switchFormGridVisibility is invoked it is detected if the focused item is an Audit field, and in that case the scroll is moved to the top so that the first batch of form fields is visible.
---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-view.js
---
|
|
|
|
Reopening:
Works fine when navigating from grid to form view. But while in form view navigating to next/prev record the scrolling still occurs. |
|
|
(0072217)
|
hgbot
|
2014-12-01 18:37
|
|
Repository: erp/devel/pi
Changeset: c523abe0e8115d406c7e2515be7aef9d5209ce73
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Mon Dec 01 18:32:17 2014 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/c523abe0e8115d406c7e2515be7aef9d5209ce73 [^]
Fixes issue 28231: Form is not scrolled if it does not have any editable fields
There was a problem with the previous fix: it worked when a record was opened from the grid view to the form view, but then it did not work if the user moved to the previous or next record while in form view.
To fix this, the logic that handled the original problem has been moved from OBStandardView.switchFormGridVisibility function to the OBViewForm.setFocusInForm function. The flow goes through the latter function each time a new record is loaded. In particular the form has to be scrolled down only when the record in being initializaed in the form, that's why a flag has been added to ensure that the code is only executed when the setFocusInForm function is executed from within the retrieveInitialValues function.
---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form.js
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-view.js
---
|
|
|
|
code reviewed
tested navigating from grid to form and navigating to next/prev record in form |
|
|
|
|
|
|
|