Hi NAV-Gurus!
Well I read some posts about the same topic, but non of them helped me out.
I have a form with
- two subforms
- one textfield
- one pushbutton.
When I enter data into the textfield, data is inserted and shown in one of the subforms. Afterwards I want the focus to get back to the textfield for the next entry.
In the text field in "OnAfterValidate" I have the following code:
CurrForm.UPDATE(FALSE);
CurrForm.erfasste_SeNos.FORM.Update; //update subform
CurrForm.Scanfield.ACTIVATE;
The second line calls a function in the subform so it gets updated and afterwards I want the focus to get back to the textfield.
It always sets the focus on the pushbutton.
Delayedinsert = yes in the subform.
Maybe another trigger to set the focus with activate?
Any ideas?
Many thanks in advance
Thomas
Thomas Buchholz
ekey biometric systems GmbH
4031 Linz
Austria
web:
http://www.ekey.net0
Answers
I added the ACTIVATE to the OnActivate-Trigger of the button becuase it will not be pushed everytime (only if importing xml-file).
But now it works.
Thanks and have a nice day.
Thomas
ekey biometric systems GmbH
4031 Linz
Austria
web: http://www.ekey.net