Home » Developer & Programmer » Forms » Create Next/Previous Record button logic ?  () 1 Vote
icon5.gif  Create Next/Previous Record button logic ? [message #404652] Fri, 22 May 2009 11:24 Go to next message
eeriehunk
Messages: 16
Registered: May 2009
Junior Member
Hi All,
In my form, I have two data blocks. One data block (Datablock1) linked to a DB Table and another block (Datablock2) that I created manually (not linked to any DB) which I use to show only the output of Datablock1. I am copying some of the output values of Datablock1 to Datablock2 (:Datablock2.id := :Datablock1.id). When I do a search and more than one record exists, and when I press the 'Next Record' or 'Previous Record' buttons of the Form, the output does not change in my Datablock2 output fields. How can I make the output change in my Datablock2 fields as I press the 'Next/Previous Record'.
Can I create my own 'Next/Previous Record' buttons, what logic or functionality can I use.
Please don't ask me why I am showing my output in another block, it's a long explanation and that is how I was told to accomplish. Thank you for your understanding.
Regards,
Aj
Re: Create Next/Previous Record button logic ? [message #404684 is a reply to message #404652] Fri, 22 May 2009 15:23 Go to previous messageGo to next message
Littlefoot
Messages: 21823
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
You can create your own logic in KEY-NEXT-RECORD and KEY-PREVIOUS-RECORD triggers (i.e. there's no need to create additional buttons) of the first block. Put anything you need in there; just don't forget to include NEXT_RECORD and PREVIOUS_RECORD built-ins (otherwise you won't change the record).
icon14.gif  Re: Create Next/Previous Record button logic ? [message #404972 is a reply to message #404684] Mon, 25 May 2009 22:22 Go to previous message
eeriehunk
Messages: 16
Registered: May 2009
Junior Member
Thank you for the reply.
Regards, Aj
Previous Topic: Disable invoking button
Next Topic: focus lost
Goto Forum:
  


Current Time: Mon Feb 10 03:51:38 CST 2025