Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Row cannot be identified in Data Tab;e
#1
Solved: 10 Years, 9 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: 10 Years, 9 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: 10 Years, 9 Months ago
Javatable doesnt contain RowCount also..can you suggest some other workaround.

Regards,
Rachna
Reply
#4
Solved: 10 Years, 9 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: 10 Years, 9 Months ago
Thanks Baba Fakruddin.D for you help.It worked out!
Cheers!
Reply
#6
Solved: 10 Years, 9 Months ago
Hi Rachana,

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

Thanks Sreekanth..
Reply
#7
Solved: 10 Years, 9 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,277 05-12-2016, 03:00 PM
Last Post: robertosalemi
  Row count is always shown as 1 Harry1999 0 1,971 04-14-2016, 11:11 PM
Last Post: Harry1999
  Object identified despite having no information mjt 1 1,898 09-14-2015, 08:25 PM
Last Post: mjt
  Toolbar object not identified excellentpawan123 0 1,968 10-29-2014, 04:37 PM
Last Post: excellentpawan123
  Keep row number imbizile 0 2,550 09-18-2014, 03:31 AM
Last Post: imbizile

Forum Jump:


Users browsing this thread: 1 Guest(s)