There are two ways.  One, if you must have a different componentID for each
dbedit and another if you don't.  The First is if they must have unique
ComponentID.

Say you have six dbEdit fields.  Name each of the fields ComponentID like:

dbe0
dbe1
dbe2
.....
dbe5


On your Button that adds the row, set its' Onclick EEP to:

SaveRow

SET VAR vi TEXT = '0'
SET VAR vcmd TEXT = NULL
WHILE vi <> '6' THEN
  SET VAR vcmd = ('Property dbe' + .vi & 'TEXTVALUE '' ''')
  &vcmd
  SET VAR vi = (CTXT(((INT(.vi)) + 1)))
ENDWHILE
RETURN


If they don't have to have unique IDs then name them all the Same like:

dbeTheSame

Then in the OnClick EEP

SaveRow
Property dbeTheSame TEXTVALUE ''






----- Original Message ----- 
From: "Joel Solomon" <[EMAIL PROTECTED]>
To: "RBG7-L Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, November 29, 2004 2:50 PM
Subject: [RBG7-L] - Re: Update 78


> David,
>
> The "Add Row" option saves the row but does not clear the form.  Also, it
> does not reposition the cursor.  I can't seem to duplicate the [enter]
> function by using any configuration of commands.
>
> Joel
> ----- Original Message ----- 
> From: "David M. Blocker" <[EMAIL PROTECTED]>
> To: "RBG7-L Mailing List" <[EMAIL PROTECTED]>
> Sent: Monday, November 29, 2004 2:08 PM
> Subject: [RBG7-L] - Re: Update 78
>
>
> > I'm resending this reply because I don't think this got through the first
> > time.
> >
> > I think it's the predefined "Add row" option, no?
> >
> > David Blocker
> > [EMAIL PROTECTED]
> > 781-784-1919
> > Fax: 781-784-1860
> > Cell: 339-206-0261
> > ----- Original Message -----
> > From: "Joel Solomon" <[EMAIL PROTECTED]>
> > To: "RBG7-L Mailing List" <[EMAIL PROTECTED]>
> > Sent: Monday, November 29, 2004 1:27 PM
> > Subject: [RBG7-L] - Update 78
> >
> >
> > > Maybe I had to much turkey over the holiday, but I am experiencing a
> > strange
> > > situation.  I have a simple form that has five db-edit fields.  After
> > > entering data in the last field and the [enter] key is pressed, the form
> > > saves the row, the form clears all the entered data and the cursor goes
> to
> > > the first field.  This is wonderful.
> > >
> > > But, I would like to have a button on the form that accomplishes the
> same
> > > three functions (save, clear and reposition the cursor).  I have tried
> all
> > > the pre-defined EEP functions and none of them works exactly like the
> > > [enter] key.  I also checked the sample database but nothing helped.
> > >
> > > If anyone has encountered this situation and has a solution, I would be
> > > greatly appreciated.
> > >
> > > Joel Solomon
> > > Controller
> > > Barbizon International
> > > [EMAIL PROTECTED]
> > >
> >
>

Reply via email to