Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Row cannot be identified in Data Tab;e
#1
Solved: 11 Years, 4 Months ago
Hello,

I am facing issues in identification of first row of DataTable in my Java application.
While recording the first row of the Data Table is selected :
Code:
JavaWindow("Sales_BasicFlow").JavaDialog("Delivery Date/Time Slot").JavaTable("Note: Please inform the_3").SelectRow "#0"

But while Running the recorded script again ,an error is observed saying
"This operation cannot be performed"

Kindly let me know what is the issue and resolution to it.
Would appreciate a quick response.
Reply
#2
Solved: 11 Years, 4 Months ago
I hope javatable doesn't contain Row 0...

you use getrowcount and then use for loop to select values one by one

thanks & regards
Baba Fakruddin.D
Reply
#3
Solved: 11 Years, 4 Months ago
Javatable doesnt contain RowCount also..can you suggest some other workaround.

Regards,
Rachna
Reply
#4
Solved: 11 Years, 4 Months ago
Hi Rachna,

Step 1: Firstly find out the starting index/row value of Javatable ( whether it is 0 or 1)

Step2: For Javatable, use GetROProperty("Rows") & retrieve the rowcount

Step3 :Then Use the "For Loop" & Select all the rows one by one

Just check the below example code & execute...... i hope ur problem will be solved.

Code:
RCount=JavaWindow("Sales_BasicFlow").JavaDialog("Delivery Date/Time Slot").JavaTable("Note: Please inform the_3").GetROProperty("Rows")

for i=0 to RCount
   JavaWindow("Sales_BasicFlow").JavaDialog("Delivery Date/Time Slot").JavaTable("Note: Please inform the_3").SelectRow i
Next
Reply
#5
Solved: 11 Years, 4 Months ago
Thanks Baba Fakruddin.D for you help.It worked out!
Cheers!
Reply
#6
Solved: 11 Years, 4 Months ago
Hi Rachana,

The above solution was given by Sreekanth Chilam and not by Baba Fakruddin.D.

Thanks Sreekanth..
Reply
#7
Solved: 11 Years, 4 Months ago
Many Thanks to you Sreekanth!@[/b]
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  DataGrid: double click on selected row robertosalemi 0 4,437 05-12-2016, 03:00 PM
Last Post: robertosalemi
  Row count is always shown as 1 Harry1999 0 2,093 04-14-2016, 11:11 PM
Last Post: Harry1999
  Object identified despite having no information mjt 1 2,127 09-14-2015, 08:25 PM
Last Post: mjt
  Toolbar object not identified excellentpawan123 0 2,134 10-29-2014, 04:37 PM
Last Post: excellentpawan123
  Keep row number imbizile 0 2,756 09-18-2014, 03:31 AM
Last Post: imbizile

Forum Jump:


Users browsing this thread: 2 Guest(s)