Posts: 1,003
Threads: 1
Joined: Jul 2009
Reputation:
5
08-05-2009, 05:59 PM
(This post was last modified: 08-05-2009, 06:01 PM by basanth27 .)
I see from your subject that you are trying to select a value from the table, but from the code you are trying to set a value to the table.
Try this if your intention is only to select a cell,
Code:
JavaWindow("Sales_BasicFlow").JavaDialog("Optional Service Selection").JavaTable("Select Services for 0000374914").SelectCell 1 ,"Select"
I presume "Select" is the text you want to select from the table ??
Sorry i misled. My bad.
Code:
JavaWindow("Sales_BasicFlow").JavaDialog("Optional Service Selection").JavaTable("Select Services for 0000374914").SelectCell 1 ,"Select"
"Select" here is the name of the column and 1 is the first row.
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life .
Posts: 36
Threads: 14
Joined: Feb 2009
Reputation:
0
08-06-2009, 09:48 AM
hi,
Thanks for the quick reply..
but it also didnt work and I am getting the same issue "The operation could not be performed"
Kindly provide me a solution for this issue asap.
Regards,
Rachna
Posts: 1,003
Threads: 1
Joined: Jul 2009
Reputation:
5
08-06-2009, 12:21 PM
Try this then,
Javatable().Object.SelectCell Cint(1), "Select"
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life .
Posts: 1,003
Threads: 1
Joined: Jul 2009
Reputation:
5
08-06-2009, 01:00 PM
It would for sure, Since you are selecting a cell and there is no return value for it. Please try with assigning a variable. Just like this,
Code:
JavaWindow("Sales_BasicFlow").JavaDialog("Optional Service Selection").JavaTable("Select Services for 0000374914").SelectCell Cint(1), "Select"
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life .
Posts: 1,003
Threads: 1
Joined: Jul 2009
Reputation:
5
08-06-2009, 02:34 PM
Thanks rachana. It would be more helpful if you can load the spy shot of the object you want to select. That can help me to drill further.
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life .
Posts: 36
Threads: 14
Joined: Feb 2009
Reputation:
0
08-06-2009, 03:37 PM
please find spy shot attached.
Attached Files
Image(s)