At 10:09 AM 8/21/2014, Hodges, Dennis wrote:

I have a form that edits multiple tables and want to override the
default tab order if there are more records on the section I am
currently editing.  I can't seem to find a way to set the focus
to a field in an EEP.  Some sample code which does this would be
greatly appreciated.

Based on the user input, programmatically, you can switch between
fields and focus on any field, using the "SET_FOCUS" option of the
PROPERTY command as Custom Entry/Exit EEP.

In order to accomplish such task, first you will need to assign
unique Component IDs for all relevant DB/VAR Edit controls. Then,
use the following sample code as an On Exit EEP.

-- A very simple example
-- On Exit EEP
   RECALC VARIABLES
IF vCheckValue IN (a,d,e,f) THEN
   PROPERTY ComponentIDa SET_FOCUS 'TRUE'
ELSE
   PROPERTY ComponentIDb SET_FOCUS 'TRUE'
ENDIF
   RETURN

Where:

vCheckValue is the resulting value based on expression defined in
a form.

ComponentIDa and ComponentIDb are unique Component IDs assigned
to a given DB/VAR edit controls in form.

Hope that helps!

For more details and examples, refer to R:Docs 9.5.

Very Best R:egards,

Razzak.

www.rbase.com
www.facebook.com/rbase
--
31 years of continuous innovation!
16 Years of R:BASE Technologies, Inc. making R:BASE what it is today!
--


Reply via email to