Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Redisplaying a Form

58 views
Skip to first unread message

keith...@orcon.net.nz

unread,
Apr 9, 2013, 12:25:05 AM4/9/13
to
I have a Form with two buttons 'Add some records' and 'Remove the records'. Pushin the first adds some records to a table and pushing the second removes the same records. This works fine.

I also have a Status field which has two radio buttons - "Records not added" and "Records added". When I push 'Add some Records' I call a procedure which adds and updates the status. The status radio buttons has a set of Enable and Disable controls depending on the value of status.

Affter adding records, the values of status and enabling/disabling of controls does not take effect. If I close and reopen the window the correct status and enabling etc are shown.

How can I update these things from within my 'add records' procedure?

Also, I put all of this in the 'accept' embed for the button and it made no difference.

Thanks

Hans Kjaergaard

unread,
Apr 9, 2013, 1:27:27 AM4/9/13
to
On Mon, 8 Apr 2013 21:25:05 -0700 (PDT), keith...@orcon.net.nz
wrote:

>I have a Form with two buttons 'Add some records' and 'Remove the records'. Pushin the first adds some records to a table and pushing the second removes the same records. This works fine.
>
>I also have a Status field which has two radio buttons - "Records not added" and "Records added". When I push 'Add some Records' I call a procedure which adds and updates the status. The status radio buttons has a set of Enable and Disable controls depending on the value of status.
>
>Affter adding records, the values of status and enabling/disabling of controls does not take effect. If I close and reopen the window the correct status and enabling etc are shown.
>
>How can I update these things from within my 'add records' procedure?
Add a line just after you had updated your "status radio buttons", you
can try to write DISPLAY on that line, test it out, or you can try
with UPDATE().

Btw, read the help about these two DISPLAY and UPDATE().


/Hans

Keith Thomas

unread,
Apr 9, 2013, 9:10:01 PM4/9/13
to
On Tuesday, April 9, 2013 5:27:27 PM UTC+12, Hans Kjaergaard wrote:
> On Mon, 8 Apr 2013 21:25:05 -0700 (PDT), keith...@orcon.net.nz wrote: >I have a Form with two buttons 'Add some records' and 'Remove the records'. Pushin the first adds some records to a table and pushing the second removes the same records. This works fine. > >I also have a Status field which has two radio buttons - "Records not added" and "Records added". When I push 'Add some Records' I call a procedure which adds and updates the status. The status radio buttons has a set of Enable and Disable controls depending on the value of status. > >Affter adding records, the values of status and enabling/disabling of controls does not take effect. If I close and reopen the window the correct status and enabling etc are shown. > >How can I update these things from within my 'add records' procedure? Add a line just after you had updated your "status radio buttons", you can try to write DISPLAY on that line, test it out, or you can try with UPDATE(). Btw, read the help about these two DISPLAY and UPDATE(). /Hans

Thanks Hans. In the Embed I update the table with the new value and adding DISPLAY correctly shoped the condition of the Status radio buttons. However, I could not get the ABC actions associated with those buttons to execute (when clicked enable/disable etc). Instead what I have done for each piece of code is to explicitly enable or disable the controls that are appropriate to the action having been completed. This now has resulted in code that works perfectly. Thanks for your help.

Keith
0 new messages