Hello ,
I have one datawindow with 10th columns (field1, field2,……… , field10). Tab order is already set in datawindow from 10 to 100.
Requirement: If focus is on field10 and user pressed on tab then tab should be set as below condition.
- If field1 have more than one value then tab should be set on field1.
- If field1 one value then tab should be set on field2.
Sample Code on user created keydown event on datawindow(dw_1):
if ( keydown(KeyTab!)) and (this.GetColumnName() = ‘field10') then
If filed1.RowCount () > 1 Then
dw_1.SetColumn(' field1')
Else
dw_1.SetColumn('field2')
End If
end if
This code is not working fine.
Please advise how can i set the tab position as per desired requirement.
Thanks
Shweta