Openbravo Issue Tracking System - POS2
View Issue Details
0046979POS2POSpublic2021-06-03 13:272021-06-10 12:56
dmiguelez 
prakashmurugesan88 
highmajoralways
closedfixed 
5
 
 
No
0046979: JIRA-1759: Set focus of Customer Form windows in the first field when opened
When opening the Customer Form Windows (Search Customer and New/Edit Customer) the focus should be always set on the first field so the user can start introducing data right away.
In the POS click on the customer icon
The Window shown is the Search Customer Form.
Check that the focus is not set on the first field.

Click on New Customer Button.
The Window shown is the New/Edit Customer Form.
Check that the focus is not set on the first field.
After some developments, it is possible to define the focus of a form:
https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/commit/303585aac2afdb7e2b2db81711e074b295a0b6c5 [^]

This can be done through the form handler (for example, CustomerFormHandler.js)
When performing an action, like onLoad, the returned new State can include the field that should be focused.
No tags attached.
Issue History
2021-06-03 13:27dmiguelezNew Issue
2021-06-03 13:27dmiguelezAssigned To => Retail
2021-06-03 13:27dmiguelezTriggers an Emergency Pack => No
2021-06-03 13:28dmiguelezStatusnew => acknowledged
2021-06-03 13:28dmiguelezStatusacknowledged => scheduled
2021-06-03 13:28dmiguelezStatusscheduled => acknowledged
2021-06-03 13:28dmiguelezResolution time => 1623880800
2021-06-08 11:11dmiguelezAssigned ToRetail => prakashmurugesan88
2021-06-08 11:20dmiguelezStatusacknowledged => scheduled
2021-06-09 16:36hgbotNote Added: 0129270
2021-06-10 12:52dmiguelezSummarySet focus of Customer Form windows in the first field when opened => JIRA-1759: Set focus of Customer Form windows in the first field when opened
2021-06-10 12:56hgbotResolutionopen => fixed
2021-06-10 12:56hgbotStatusscheduled => closed
2021-06-10 12:56hgbotNote Added: 0129328
2021-06-10 12:56hgbotNote Added: 0129329

Notes
(0129270)
hgbot   
2021-06-09 16:36   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/537 [^]
(0129328)
hgbot   
2021-06-10 12:56   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: 68f211e394ff1096e606998b605c85c128625845
Author: Prakash M <prakash@qualiantech.com>
Date: 2021-06-10T10:53:31+00:00
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/68f211e394ff1096e606998b605c85c128625845 [^]

Fixed BUG-46979: Set focus to the first field on opening create/edit customer or customer selector popup

---
M web-jspack/org.openbravo.pos2/src/components/Customer/CustomerForm/CustomerFormHandler.js
M web-jspack/org.openbravo.pos2/src/components/Customer/CustomerSelector/CustomerSelectorHandler.js
---
(0129329)
hgbot   
2021-06-10 12:56   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/537 [^]