NetTalk Central

Author Topic: Pressing enter is going back instead of submitting  (Read 5585 times)

seanh

  • Jr. Member
  • **
  • Posts: 94
    • View Profile
    • Email
Pressing enter is going back instead of submitting
« on: August 06, 2017, 10:00:10 PM »
NTWS 10
Memory form,  I have a search field(s) and a submit button marked as default button to refresh a browse
However pressing enter causes one to go back a page instead.

How do I get enter to press my button instead?

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Pressing enter is going back instead of submitting
« Reply #1 on: August 06, 2017, 10:37:32 PM »
does the memory form have a Save or Close button?

cheers
Bruce

seanh

  • Jr. Member
  • **
  • Posts: 94
    • View Profile
    • Email
Re: Pressing enter is going back instead of submitting
« Reply #2 on: August 06, 2017, 11:57:52 PM »
No.  No std buttons at all. No update forms Everything is just display only in the browse.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Pressing enter is going back instead of submitting
« Reply #3 on: August 07, 2017, 09:38:52 PM »
>>  and a submit button

should be just a button though, not a "submit" button...

cheers
Bruce

seanh

  • Jr. Member
  • **
  • Posts: 94
    • View Profile
    • Email
Re: Pressing enter is going back instead of submitting
« Reply #4 on: August 08, 2017, 01:25:56 AM »
OK To clarify.
I have memory forms with fields (dates for browse filters), buttons, one of which I call submit, but is just a button with an equate of Button:refresh that in client actions does a reset of other fields mainly a procedure calling a Browse.

In all forms the refresh is checked as default button.
In all cases the enterkey goes back to the previous page.
so enter - enter -enter - enter swaps between 2 pages

to further clarify - this behaviour seems to be application wide.

Vinnie

  • Full Member
  • ***
  • Posts: 183
    • View Profile
    • Email
Re: Pressing enter is going back instead of submitting
« Reply #5 on: August 08, 2017, 02:19:00 AM »
Hi

Not sure I am reading your post correctly but you do not need to call the browse from the form.

The browse should be a procedure on the memory form. So the form has the date fields and the browse procedure.

Set the button to refresh the browse.
No need to call the browse as the browse is part of the form.

Cheers

Vinnie


 

seanh

  • Jr. Member
  • **
  • Posts: 94
    • View Profile
    • Email
Re: Pressing enter is going back instead of submitting
« Reply #6 on: August 09, 2017, 02:53:44 AM »
@vinnie
The memory form has dates for filtering the browse.
The Button is set to refresh the browse. And it works fine if you click the Button.
If you press enter it goes to the previous page.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Pressing enter is going back instead of submitting
« Reply #7 on: August 09, 2017, 04:42:40 AM »
Can you set up a small example, maybe with one of the shipping examples, that shows the effect Sean? (I recommend example Books (71) as a starting point...)

cheers
Bruce