Hi Stephen,
I tried out the Go to Object[Object Name: "test"] suggestion and It
appears to work. In the test case I gave a text box on the layout the
Object name "test" and set up a field to use the script trigger
OnObjectKeystroke. The trigger ran a script that returned the code
for the key stroke. If the key stroke = 13 ( Enter key) the script
did a commit and then Go to Object[Object name: "test"]. This
released the record.
Hope this helps
Bruce Herbach
On Feb 23, 2009, at 7:56 PM, Stephen Pocock wrote:
Hi
I too have used the empty 'go to field' a lot in my solutions, in
fact I usually end all my scripts with it to ensure the user does
not lock the record or indeed the database (for field and
relationship changes).
The 'go to field' blank function works in FM10 in scripts, but does
not seem to work in the same manner with script triggers.
I too am looking for a final step for my script triggers that
effectively does the equivalent of the user hitting the enter key on
the numeric keypad, ie. take them out of any field.
Chuck, if you run your script from the script manager rather than a
trigger, you should find that 'go to field' blank works in the same
manner as previous versions, it is only from the trigger that it
does not work.
Any ideas on how to accomplish this?
Cheers
Stephen
******************** IMPORTANT PLEASE READ ***************************
Please notify us if this communication has been sent to you
by mistake. If it has been, Client Legal Privilege is not
waived or lost and you are not entitled to use it in any way.
*********************************************************************