Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0031122Openbravo ERPB. User interfacepublic2015-10-09 12:512022-02-01 08:05
caristu 
Triage Platform Base 
normalminoralways
acknowledgedopen 
5
 
 
No
Core
No
0031122: The cancel edit button does not work properly in records without editable fields under some circumstances
The cancel edit button does not work properly in records without editable fields if also none of the fields has the "first focused field" flag active.

Having this settings, if we click on the edit button and then on the cancel edit, the UI does not show the edit button (pencil) again.

This configuration could be avoided if it would be available an UI Pattern that just prevents edition (Insert or Update)
1) Choose any tab, and leave the "first focused field" flag for every field as inactive.
2) Define the column related to all that fields as not updateable
3) Compile and restart
4) Open the window where that tab is located. Navigate to that tab.
5) In grid view, click on the edit button of any record.
6) Click on the cancel edit button. Notice that the edit button is not appearing anymore
The problem is on the startEditing method of the OBViewGrid class. As it does not exists any focusable field, this method does not define any value for the "colNum" value, so any cell will be selected, causing the problem later.

Under this situation this statement is never true:

if (this.getFields()[i].editorProperties && this.getFields()[i].editorProperties.firstFocusedField) {}
No tags attached.
related to feature request 0031124 new Triage Platform Base Add the "Insert or Delete" pattern for the standard window tabs 
png cancelButtonNotGone.png (6,041) 2015-10-09 13:00
https://issues.openbravo.com/file_download.php?file_id=8551&type=bug
png
Issue History
2015-10-09 12:51caristuNew Issue
2015-10-09 12:51caristuAssigned To => platform
2015-10-09 12:51caristuOBNetwork customer => No
2015-10-09 12:51caristuModules => Core
2015-10-09 12:51caristuTriggers an Emergency Pack => No
2015-10-09 12:55caristuProposed Solution updated
2015-10-09 12:58caristuFile Added: cancelButtonNotGone.png
2015-10-09 12:59caristuFile Deleted: cancelButtonNotGone.png
2015-10-09 13:00caristuFile Added: cancelButtonNotGone.png
2015-10-09 13:00caristuIssue Monitored: networkb
2015-10-09 13:03caristuRelationship addedrelated to 0031124
2015-11-10 15:02alostaleStatusnew => acknowledged
2022-02-01 08:05alostaleAssigned Toplatform => Triage Platform Base

There are no notes attached to this issue.