Subject |
Re: beginappend() Problem |
From |
Peter <Phb2020@hotmail.com> |
Date |
Tue, 27 Jun 2023 16:55:44 -0400 |
Newsgroups |
dbase.getting-started |
Ken Mayer Wrote:
> On 6/27/2023 8:48 AM, Peter wrote:
> > I am having a problem with beginappend() which is called if user needs to enter data for sending bill to someone other than the patient. If there a prior listing for this information, all works fine: existing data is used for datalink of billtotest.wfm.
> > However, if there is no prior listing, i.e. no rowset for patient ID, form.rowset.beginappend() does not present user with a blank form. (Based on OLH, I used beginAppend() Example to carry over to the billtotest.wfm. This does not work.)
> >
> > Of interest is that msgbox for rowset.state is 1 (browse), not 2 (edit) in the first circumstance where prior rowset is found by findkey().
> > If there is no rowset found for existing data, a msgbox for rowset.state does not show 3 (append), but shows 1.
>
> Okay, so as you note, it is setting the rowset state to edit. You need
> to figure that part out. For example, I don't see anywhere that you are
> changing the state, using beginAppend(), etc. So, where are you doing
> that? You're not showing enough information, code, etc. Maybe if you
> tried to reduce this down to a turnkey with as many forms and a table
> that showed the issue as necessary ...?
>
> 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
>
Hi, Ken,
I am not changing the rowset.state anywhere in my code. I put in a msgbox only to try to figure out why beginappend() does not put the rowset into an append mode. For my edit mode, rowset.state shows browse. For my beginappend(), rowset state shows edit. Are you advising that I code these rowset.state specifically?
Peter
|
|