AscentialTest Support Hub

Notifications

Clear all

Multi-select row in PowerBuilder data window table



1

Posts


1

Users


0

Reactions


16

Views

(@blesuer)
Member Admin

Joined: 4 months ago
Posts: 33

Topic starter
 

Performing a multi-select in a PowerBuilder table requires that the <Ctrl> key be pressed (held down) during the selection of the items to be selected and then released. Here is are two different sequences that work:

MyWindow.MyTable.Row[“MySelector”].MyObject.Click()
UA.GenKeyEvents(“<Ctrl:Press>”)
MyWindow.MyTable.Row[“MySelector2”].MyObject.Click()
UA.GenKeyEvents(“<Ctrl:Release>”)

***********************************************
MyWindow.MyTable.Row[“MySelector”].GenMouseEvents(MouseAction.Press)
UA.GenKeyEvents(“<Ctrl:Press>”)
MyWindow.MyTable.Row[“MySelector2”].GenMouseEvents(MouseAction.Press)
UA.GenKeyEvents(“<Ctrl:Press>”)



   

Quote

Share:

Can’t Find An Answer in the Forum?

Contact Our Team