| Subject |
Re: grid focus |
| From |
Ken Mayer <dbase@nospam.goldenstag.net> |
| Date |
Thu, 29 Dec 2022 10:37:29 -0800 |
| Newsgroups |
dbase.getting-started |
On 12/29/2022 12:27 AM, Mustansir Ghor wrote:
> Dear Ken sir
>
> Thank you.
>
> I am herewith attaching the form and a table that holds its data.
>
> 1. When you run the form there will appear 2 grids.
>
> 2. The 1st grid2 (left side) has 3 invoices and 2nd grid1 (right side) has invoice details for each invoice.
>
> 3. The 2nd grid1 has column verified by. If this is empty then at bottom of this grid1 appears entryfield in which you need to enter the item code for the selected row of the grid2. If code matches then empty field verified by will be filled with _app.session,user()( you may change this). If it does not then pointer moves to next record (or to grid1 if it reaches endofset)
>
> Now coming to problem. If we scroll grid2 (left side grid) using keyboard then wherever empty verify field comes, the entryfield appears and gets focus on it. But if we scroll with mouse the Entryfield does appear but does not get focus on it.
I see the issue. I am not sure if this is working as designed or not,
however. I added a simple check to see if the Escan entryfield's
onLostFocus event handler was firing ... when you click on the second
(or third) row in the grid on the left, the event seems to fire, so it
is going there. By adding the statement shown below it seems to work:
function ESCAN_onLostFocus()
do case
case empty(this.value)
// add this:
this.setFocus()
Note: When you attach a table, be sure to include .mdx and .dbt (if they
exist) files. First thing when I ran the form was an error that the .mdx
file was missing ...
Ken
--
*Ken Mayer*
Ken's dBASE Page: http://www.goldenstag.net/dbase
The dUFLP: http://www.goldenstag.net/dbase/index.htm#duflp
dBASE Books: http://www.goldenstag.net/dbase/Books/dBASEBooks.htm
dBASE Tutorial: http://www.goldenstag.net/dbase/Tutorial/00_Preface.htm
dBASE Web Tutorial: http://www.goldenstag.net/dbase/WebTutorial/00_Menu.htm
dBASE DOS to Windows Tutorial:
http://www.goldenstag.net/dbase/DtoWTutorial/00_Menu.htm
|
|