Subject Re: beginappend() Problem Fixed
From Lee Grant <camilee@nospam.comcast.net>
Date Fri, 30 Jun 2023 03:31:08 -0400
Newsgroups dbase.getting-started

Ken,

Along these lines, and somewhat related to this, if I have custom
buttons, that I include in the set procedure and use in the form, is
there something that prevents the button from knowing the form's rowset
relation and being able to beginAppend() the rowset?

I've created buttons on the app that does it, but my question goes to
the reason a custom button brought in from another file doesn't know the
forms rowset for the form that it was placed on?

Lee

On 6/30/2023 12:04 AM, Ken Mayer wrote:
> On 6/29/2023 5:14 PM, Peter wrote:
>> Peter Wrote:
>>
>> I spent some time today creating turnkey forms and dbfs as you
>> recommended.  That is when I realized that I put the beginappend()
>> before the form was opened.  So moving a few lines of code around, I
>> got beginappend() to work.  Beginedit() was much easier.
>> In addition I was able to prefill some of the entryfields.  The
>> prefill for last name does not seem to do what I want, but the other
>> entryfields are good.  I'll get it right soon.
>> Onward.
>
> Excellent. I was going to suggest that if you were setting beginAppend
> the way you were, then using findKey() you were navigating and therefore
> changing things and so on. (I had thought about it after my last post.)
>
> Glad you figured it out!
>
> Ken
>