11-08-2017, 11:12 PM
(This post was last modified: 11-08-2017, 11:14 PM by lotos.
Edit Reason: updated the content
)
(10-12-2017, 03:30 PM)Ankur Wrote: Just before that statement you can emulate a click. Essentially the first click will select and then the second click will Set the data as required.
Hi Ankur, this is actually something which I tried and worked, the difference is that I actually used the JavaList objects inside each table's cell instead of the JavaEdit ones, see the code sample below:
Code:
'grid/table:
JavaWindow("AppMain").JavaDialog("myDialog").JavaTable("tblName").Highlight
'Column 1:
JavaWindow("AppMain").JavaDialog("myDialog").JavaTable("tblName").ClickCell 0, "col1_Title", "LEFT"
'List inside column 1:
JavaWindow("AppMain").JavaDialog("myDialog").JavaList("listName").Select valueForCol1
'Column 2:
JavaWindow("AppMain").JavaDialog("myDialog").JavaTable("tblName").ClickCell 0, "col2_Title", "LEFT"
'List inside column 2:
JavaWindow("AppMain").JavaDialog("myDialog").JavaList("listName").Select valueForCol2
'Column 3:
JavaWindow("AppMAin").JavaDialog("myDialog").JavaTable("tblName").ClickCell 0, "col3_Title", "LEFT"
'List inside column 2:
JavaWindow("AppMain").JavaDialog("myDialog").JavaList("listName").Select valueForCol3
'click OK button:
.JavaButton("text:=OK").Click