Hi All,
I am setting up a form for data entry. The form is based on a set. There is an embedded browse for entering new records into the child table. I have setup buttons for entering the data into each field. 2 of the buttons enter a complete record, they fill in 2 fields and save the record. The other buttons fill in 2 fields, then the user finishes the entry by completing 2 more fields. The code on these buttons is designed so that after pushing the button the user is left in the first of the fields needing entry. The buttons work as designed when clicked on with the mouse. The buttons are each assigned a hot key, <ctrl>-P for example, so that the mouse isn't necessary. When I use the hot keys the user is left in the last field, needing to then <shift-tab> back to complete the record. This is an example of the code for one of the buttons:
:Payments.activate()
:Payments:BROWSE1.activate()
:Payments:Tables:cust_rec.enter_begin(HONOR_FIELD_RULES)
:Payments:BROWSE1.next()
:payments:tables:cust_rec.action = "17 LS PAID"
:Payments:BROWSE1.next()
:payments:tables:cust_rec.date = date()
Is there something I'm missing in the use of hot keys? The help file shows how to mark the key for each button, but it doesn't indicate having to change the script. If I take out the second .next() command the hot key still brings me to the last field, if I take out both it leaves me in the first filled field. If I take out the first .next() it leaves me in the last field.
Thank you in advance for any help.
Jeff C
I am setting up a form for data entry. The form is based on a set. There is an embedded browse for entering new records into the child table. I have setup buttons for entering the data into each field. 2 of the buttons enter a complete record, they fill in 2 fields and save the record. The other buttons fill in 2 fields, then the user finishes the entry by completing 2 more fields. The code on these buttons is designed so that after pushing the button the user is left in the first of the fields needing entry. The buttons work as designed when clicked on with the mouse. The buttons are each assigned a hot key, <ctrl>-P for example, so that the mouse isn't necessary. When I use the hot keys the user is left in the last field, needing to then <shift-tab> back to complete the record. This is an example of the code for one of the buttons:
:Payments.activate()
:Payments:BROWSE1.activate()
:Payments:Tables:cust_rec.enter_begin(HONOR_FIELD_RULES)
:Payments:BROWSE1.next()
:payments:tables:cust_rec.action = "17 LS PAID"
:Payments:BROWSE1.next()
:payments:tables:cust_rec.date = date()
Is there something I'm missing in the use of hot keys? The help file shows how to mark the key for each button, but it doesn't indicate having to change the script. If I take out the second .next() command the hot key still brings me to the last field, if I take out both it leaves me in the first filled field. If I take out the first .next() it leaves me in the last field.
Thank you in advance for any help.
Jeff C
Comment