dbTalk Databases Forums  

VFP 6: Multi-Row R/W Controls

comp.databases.xbase.fox comp.databases.xbase.fox


Discuss VFP 6: Multi-Row R/W Controls in the comp.databases.xbase.fox forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Gene Wirchenko
 
Posts: n/a

Default VFP 6: Multi-Row R/W Controls - 07-22-2004 , 10:25 PM






How are people handling multi-row viewing and editing these days?
Browse, grid, something else?

I need to have full validation.

I expect that I will use the dbc for the validation, but would
like the option to not have to 9as I might have some use that does not
use database tables).

If VFP version makes a difference, please specify that. I am
using VFP 6 SP 5.

Sincerely,

Gene Wirchenko

Computerese Irregular Verb Conjugation:
I have preferences.
You have biases.
He/She has prejudices.

Reply With Quote
  #2  
Old   
Jeff Grippe
 
Posts: n/a

Default Re: VFP 6: Multi-Row R/W Controls - 07-23-2004 , 08:17 AM






I use the grid which has a VALID method available for each column's input
control. I also find myself using AfterRowColChange at the grid level to
detect movement from one record to another and to take any necessary action
such as updating controls that are not being displayed in the grid itself.

"Gene Wirchenko" <genew (AT) mail (DOT) ocis.net> wrote

Quote:
How are people handling multi-row viewing and editing these days?
Browse, grid, something else?

I need to have full validation.

I expect that I will use the dbc for the validation, but would
like the option to not have to 9as I might have some use that does not
use database tables).

If VFP version makes a difference, please specify that. I am
using VFP 6 SP 5.

Sincerely,

Gene Wirchenko

Computerese Irregular Verb Conjugation:
I have preferences.
You have biases.
He/She has prejudices.



Reply With Quote
  #3  
Old   
Gene Wirchenko
 
Posts: n/a

Default Re: VFP 6: Multi-Row R/W Controls - 07-23-2004 , 10:27 AM



"Jeff Grippe" <jgrippe (AT) hilldun (DOT) com> wrote:

Quote:
I use the grid which has a VALID method available for each column's input
control. I also find myself using AfterRowColChange at the grid level to
detect movement from one record to another and to take any necessary action
such as updating controls that are not being displayed in the grid itself.
How do you enforce row-level validation?

[snip]

Sincerely,

Gene Wirchenko

Computerese Irregular Verb Conjugation:
I have preferences.
You have biases.
He/She has prejudices.


Reply With Quote
  #4  
Old   
Rush Strong
 
Posts: n/a

Default Re: VFP 6: Multi-Row R/W Controls - 07-23-2004 , 11:36 AM



"Gene Wirchenko" <genew (AT) mail (DOT) ocis.net> wrote

Quote:
How are people handling multi-row viewing and editing these days?
Browse, grid, something else?

I need to have full validation.
Forget the BROWSE, it is there more for backward compatibility than anything
else - you are better off using the grid. But I'm of the opinion that while
grids are fine for viewing multiple records, they are a poor interface for
editing. [When you're editing, prior or subsequent records should generally
not be part of your focus]. Instead, I use a read only grid and individual
(read/write) controls to echo (and edit) the currently selected record.

Others prefer to edit directly in the grid, but validation becomes more
complex.

You might check the FoxPro Wiki (as well as various framework sites) for
more discussion on this - it is a recurring topic.

- Rush




Reply With Quote
  #5  
Old   
Gene Wirchenko
 
Posts: n/a

Default Re: VFP 6: Multi-Row R/W Controls - 07-23-2004 , 05:29 PM



"Rush Strong" <rush.strong]@[verizon.net> wrote:

Quote:
"Gene Wirchenko" <genew (AT) mail (DOT) ocis.net> wrote in message
news:0311g0dq2dtag4v06fdgr4g7hrv29jblp2 (AT) 4ax (DOT) com...
How are people handling multi-row viewing and editing these days?
Browse, grid, something else?

I need to have full validation.

Forget the BROWSE, it is there more for backward compatibility than anything
else - you are better off using the grid. But I'm of the opinion that while
grids are fine for viewing multiple records, they are a poor interface for
editing. [When you're editing, prior or subsequent records should generally
not be part of your focus]. Instead, I use a read only grid and individual
(read/write) controls to echo (and edit) the currently selected record.
I thought of that (a long time ago) and discarded the idea as the
individual controls do take up a lot of space compared to a grid. I
suppose I could crunch the controls more than usual.

Quote:
Others prefer to edit directly in the grid, but validation becomes more
complex.
I do not think that the validation should be more difficult.
Unfortunately, it is.

Quote:
You might check the FoxPro Wiki (as well as various framework sites) for
more discussion on this - it is a recurring topic.
Thank you.

Sincerely,

Gene Wirchenko

Computerese Irregular Verb Conjugation:
I have preferences.
You have biases.
He/She has prejudices.


Reply With Quote
  #6  
Old   
Stefan Wuebbe
 
Posts: n/a

Default Re: VFP 6: Multi-Row R/W Controls - 07-24-2004 , 12:08 AM




"Gene Wirchenko" <genew (AT) mail (DOT) ocis.net> schrieb im Newsbeitrag
news:lbb2g0dj0m6m9umcvgistgt3bprddbqk4n (AT) 4ax (DOT) com...
Quote:
"Jeff Grippe" <jgrippe (AT) hilldun (DOT) com> wrote:

I use the grid which has a VALID method available for each column's input
control. I also find myself using AfterRowColChange at the grid level to
detect movement from one record to another and to take any necessary action
such as updating controls that are not being displayed in the grid itself.

How do you enforce row-level validation?
From another posting
Quote:
If you want to prevent moving the pointer / active row, try
NODEFAULT
in yourGrid.BeforeRowColChange()
Assumed you have a boolean custom form property called
"EditMode", the condition could look like:
LPARAMETERS nColIndex

IF Thisform.EditMode
IF NOT INLIST(LASTKEY(), 13, 9) && enter & tab, to be continued
NODEFAULT
ENDIF
ENDIF
Quote:
But I agree with Rush that validating and controling controls'
behaviour in a grid is at least more complicated than in a
separate "EditForm" or page.


hth
-Stefan



Reply With Quote
  #7  
Old   
Bill Browne
 
Posts: n/a

Default Re: VFP 6: Multi-Row R/W Controls - 07-25-2004 , 09:01 AM



I agree with Rush that grids make poor data entry devices. One work around
after another and it still doesn't act as expected.

I acutally wrote my own data entry 'grid' consising of a container object
and multiple text boxes. When I get more comfortable that I've worked all
kinks out, I'd be glad to share it. But it acts more like you would expect
a grid type data entry screen to act.

--
Bill Browne
www.edgefinderstudios.com


"Rush Strong" <rush.strong]@[verizon.net> wrote

Quote:
"Gene Wirchenko" <genew (AT) mail (DOT) ocis.net> wrote in message
news:0311g0dq2dtag4v06fdgr4g7hrv29jblp2 (AT) 4ax (DOT) com...
How are people handling multi-row viewing and editing these days?
Browse, grid, something else?

I need to have full validation.

Forget the BROWSE, it is there more for backward compatibility than
anything
else - you are better off using the grid. But I'm of the opinion that
while
grids are fine for viewing multiple records, they are a poor interface for
editing. [When you're editing, prior or subsequent records should
generally
not be part of your focus]. Instead, I use a read only grid and
individual
(read/write) controls to echo (and edit) the currently selected record.

Others prefer to edit directly in the grid, but validation becomes more
complex.

You might check the FoxPro Wiki (as well as various framework sites) for
more discussion on this - it is a recurring topic.

- Rush





Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.