Second Item from the List : Automation API

Second Item from the List

Class library usage, coding and language questions.

Second Item from the List

Postby Rakesh123 » Wed Dec 01, 2010 6:34 am

Hi frnds,
I am having a ListView which has been customised into rows and columns.The column fields r like EmpID,EmpName.I want to select the second item from the list i.e EmpName.But by using the following code I can able to receive the data from the first field only.

ListView.Items[1].Text;//Gives EmpID

So can anybody suggest me how to retrive the second field data.
Rakesh123
 
Posts: 10
Joined: Thu Oct 28, 2010 3:18 pm

Re: Second Item from the List

Postby Support Team » Wed Dec 01, 2010 3:14 pm

Hi Rakesh123,
could you please send us a snapshot (http://www.ranorex.com/support/user-gui ... html#c2072) from your ListView under test.

Best regards,
Christian
Ranorex Team
User avatar
Support Team
Site Admin
 
Posts: 4845
Joined: Fri Jul 07, 2006 5:30 pm
Location: Graz, Austria

Re: Second Item from the List

Postby Rakesh123 » Wed Dec 01, 2010 3:47 pm

How can I send the snapshot to u?Please provide the details
Rakesh123
 
Posts: 10
Joined: Thu Oct 28, 2010 3:18 pm

Re: Second Item from the List

Postby Support Team » Wed Dec 01, 2010 3:57 pm

Either per attachment here in the forum or per email to: support@ranorex.com

Best regards,
Christian
Ranorex Team
User avatar
Support Team
Site Admin
 
Posts: 4845
Joined: Fri Jul 07, 2006 5:30 pm
Location: Graz, Austria

Re: Second Item from the List

Postby Rakesh123 » Fri Dec 10, 2010 12:09 pm

I have attached the screen shot.Pls chk it out.In the ListView I cvan able to access only the 'Date' field but I want to retrive the 'Temp' field.Pls send me the solution ASAP
Attachments
ListView.JPG
ListView.JPG (48.76 KiB) Viewed 100 times
Rakesh123
 
Posts: 10
Joined: Thu Oct 28, 2010 3:18 pm

Re: Second Item from the List

Postby Support Team » Fri Dec 10, 2010 12:36 pm

Hi,

your screenshot doesn't supply much information about your control.
So can you please send us a Ranorex Snapshot which covers your listview (not a screenshot).
An explanation on how to gnerate such a snapshot can be found at:
http://www.ranorex.com/support/user-gui ... html#c2072

Thanks.

Regards,
Tobias
Support Team
User avatar
Support Team
Site Admin
 
Posts: 4845
Joined: Fri Jul 07, 2006 5:30 pm
Location: Graz, Austria


Return to Automation API

Who is online

Users browsing this forum: No registered users and 0 guests

cron