At 10:36 AM 8/21/2014, Hodges, Dennis wrote:
Thanks Razzak.
How can I determine if I am displaying the last variable in the table?
If last variable I want to set the focus to the first field in the next
section (another table), otherwise I want to move to the next record
and set focus to the first field in the current section.
That is very easy to accomplish, Dennis!
Let me send you an invitation with all details to show you how simple
that task is ...
www.join.me/RazzakMemon
Very Best R:egards,
Razzak
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of A.
Razzak Memon
Sent: Thursday, August 21, 2014 10:31 AM
To: RBASE-L Mailing List
Subject: [RBASE-L] - Re: Overriding the default tab order on a form.
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!
--