At 05:14 PM 7/31/2009, Dennis McGrath wrote:
How do I automatically take the user back to the offending
field on the correct tab?
There are several techniques to achieve the desired results.
01. Assign a unique Component ID to a field (DB/Var Edit)
and then use the following PROPERTY command to switch
the focus to appropriate DB/Var Edit control.
Syntax:
PROPERTY <UniqueComponentID> SET_FOCUS 'TRUE'
RETURN
02. Assign a Component ID to the Enhanced Tab Control and
then use the following PROPERTY command to first switch
to the corect page and then set the focus to appropriate
DB/Var Edit Control.
Syntax:
PROPERTY <EnhancedTabControlCompID> ActivePageIndex 'n'
RETURN
Where n is the internal number for the tab page.
0 = first tab page
1 = second tab page
2 = third tab page
3 = fourth tab page
4 = fifth tab page
Example:
PROPERTY EnhancedTabControlCompID ActivePageIndex '2'
PROPERTY DBVarCompID SET_FOCUS 'TRUE'
RETURN
This will first switch to page 3 of the Enhanced Tab
control and then set the focus to DB/Var Edit control
with a unique Componnet ID assigned as DBVarCompID
That's all there is to it!
Very Best R:egards,
Razzak.