Home » Developer & Programmer » Forms » if down arrow key is pressed, detail block window is displayed
if down arrow key is pressed, detail block window is displayed [message #214343] Mon, 15 January 2007 23:46 Go to next message
cong
Messages: 25
Registered: June 2006
Junior Member
hi!
master block is student records, detail blocks are registered vehicles and offenses.

main screen displays the student details, one record at a time (not tabular) and there are buttons below: registered vehicles, minor offenses, major offenses. if registered vehicles button is pressed, the registered vehicles screen is displayed (link is the student id).

my problem is, when i press down arrow key, instead of displaying the next student record, registered vehicles window is displayed. they have separate windows.

pls. help. thanks!
Re: if down arrow key is pressed, detail block window is displayed [message #214351 is a reply to message #214343] Tue, 16 January 2007 00:19 Go to previous messageGo to next message
Littlefoot
Messages: 21818
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
It is about the KEY-DOWN trigger; put code which will navigate to desired block in there. Basically,

GO_BLOCK('registered_vehicles');

might be enough.

BTW, how are you going to navigate between students? KEY-UP will still show a previous student.
Re: if down arrow key is pressed, detail block window is displayed [message #214363 is a reply to message #214343] Tue, 16 January 2007 00:47 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Review the block property 'Navigation - navigation style' - it has three options 'SAME_RECORD, CHANGE_RECORD, or CHANGE_BLOCK'. What do you have currently? Try 'change_record' and see what happens.

David
Re: if down arrow key is pressed, detail block window is displayed [message #214529 is a reply to message #214351] Tue, 16 January 2007 20:23 Go to previous messageGo to next message
cong
Messages: 25
Registered: June 2006
Junior Member
when i press down arrow key, the next student record should be displayed, not the registered vehicles block.

thanks
Re: if down arrow key is pressed, detail block window is displayed [message #214530 is a reply to message #214363] Tue, 16 January 2007 20:25 Go to previous messageGo to next message
cong
Messages: 25
Registered: June 2006
Junior Member
same thing happens, registered vehicles block is displayed instead of displaying the next student record.

thanks
Re: if down arrow key is pressed, detail block window is displayed [message #214540 is a reply to message #214530] Tue, 16 January 2007 23:18 Go to previous message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
On which block did you change the setting? Have you manually navigated to the other block?

David
Previous Topic: DELETING RECORDS - MASTER-DETAIL
Next Topic: How to insert data to other table which is not on the same block please?
Goto Forum:
  


Current Time: Fri Sep 20 14:34:53 CDT 2024