[1] Click TOOLS | SCRIPT EDITOR to show the Script Editor screen
[2] Locate "frmEditorApp" and the "OnAfterEditorOnScreen" event
[3] Copy & Paste the following script into the Script Editor :-
- Code: Select all
frmEditorApp frm = (Params[0] as frmEditorApp);
System.Reflection.FieldInfo fi = frm.GetType().GetField("edPatient", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance);
if (fi != null)
{
Control c = fi.GetValue(frm) as Control;
if (c != null)
c.Focus();
}
[4] Click OK
To test this out, either create a new appointment or open an existing one, and you should notice that the PATIENT field will be given focus (rather than the START TIME field).