How do i, Set the focus to the first field – Kofax DOKuStar Validation User Manual
Page 110

DOKuStar Validation Programming Manual
Page
• 106
How Do I…
Set the Focus to the First Field
You might want to set the focus in the Validation GUI to the first field after importing the data. This is done using
the field’s
Activate
method. The first field should be identified with respect to the current filter settings, so we use
the cursor object.
The following piece of code sets the focus to the first field right after the
Data
object has been filled:
Option Explicit
Dim WithEvents Data As DOKuStarDataset.Data
Private Sub Application_OnProjectLoaded(ByVal App As Application)
Set Data = App.Project.DataSet.Data
End Sub
Private Sub Data_OnPostImported(ByVal Data As Data)
Dim crs As Cursor
Set crs = Data.DataSet.Controller.Cursor '* get the current cursor
If crs.Fields.Count = 0 Then
MsgBox "No fields correspond to the current filter settings"
Exit Sub
End If
crs.FirstField.Activate '* activate the first field
End Sub
- Communication Server 10.0.0 (187 pages)
- Communication Server 10.0.0 (44 pages)
- Communication Server 10.0.0 (137 pages)
- Communication Server 10.0.0 (109 pages)
- Communication Server 10.0.0 (10 pages)
- Communication Server 10.0.0 (16 pages)
- Communication Server 10.0.0 (77 pages)
- Communication Server 10.0.0 (8 pages)
- Communication Server 9.1 (35 pages)
- Communication Server 9.1 (203 pages)
- Communication Server 9.1 (130 pages)
- Communication Server 9.1 (16 pages)
- Communication Server 9.1 (113 pages)
- Communication Server 9.1 (9 pages)
- Communication Server 9.1 (85 pages)
- Communication Server 9.1 (8 pages)
- Communication Server 9.1.1 (204 pages)
- Communication Server 9.1.1 (38 pages)
- Communication Server 9.1.1 (127 pages)
- Communication Server 9.1.1 (16 pages)
- Communication Server 9.1.1 (114 pages)
- Communication Server 9.1.1 (9 pages)
- Communication Server 9.1.1 (85 pages)
- Communication Server 9.1.1 (8 pages)
- Communication Server 9.2.0 (203 pages)
- Communication Server 9.2.0 (54 pages)
- Communication Server 9.2.0 (126 pages)
- Communication Server 9.2.0 (14 pages)
- Express 1.0 (17 pages)
- Express 1.1 (21 pages)
- INDICIUS 6.0 (124 pages)
- INDICIUS 6.0 (104 pages)
- INDICIUS 6.0 (105 pages)
- INDICIUS 6.0 (48 pages)
- INDICIUS 6.0 (120 pages)
- INDICIUS 6.0 (15 pages)
- INDICIUS 6.1 (46 pages)
- Transformation Modules 3.5 (26 pages)
- Transformation Modules Invoice Pack 1.0 (26 pages)
- Transformation Modules Invoice Pack 1.0 (29 pages)
- DOKuStar Validation (109 pages)
- DOKuStar Validation (32 pages)
- DOKuStar Validation (24 pages)