- Shweta Jain
- PowerBuilder
- Tuesday, 12 March 2019 06:20 AM UTC
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
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
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.