Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
problem with retieving the data from the webtable
#1
Solved: 10 Years, 8 Months, 3 Weeks ago
Hi,
I want to retrieve the column name from the webtable.
The column names in the webtable are
IDENTITYand Report 499402 has been successfully saved.

I want to retieve the column name:Report 499402 has been successfully saved.
The column name keeps on changing.
For ex: when i create another report the column name becomes

Report 499403 has been successfully saved( saves with different report id)
I want to capture this column name.rows are 4
Any help will be really appreciated.


Regards;
vijay
Reply
#2
Solved: 10 Years, 8 Months, 3 Weeks ago
Hi,
I am trying these both methods.

Code:
Msgbox Browser("micclass:=Browser").Page("micclass:=Page").WebElement("innertext:=.*Report .* has been successfully saved.*","Index:=1").GetROProperty("outertext")

when i run this i am getting object matches more than 1

Code:
var= Browser("micclass:=browser").page("micclass:=page").WebTable("name:Save","index:=1").GetCellData(1,2)
msgbox var
when i run this, it gives doesnot support this property.
Any help will be really appreciated.
Regards;
vijay
Reply
#3
Solved: 10 Years, 8 Months, 3 Weeks ago
Hi Vijay,
You can check the regular expression for the webelement and enter 'Report .*' in the innertext field.

You cannot access a WebEdit item in a Webtable using GETCELLDATA. Instead you can use the below method

Code:
Browser("Browser").Page("Page").WebTable("Webtable").ChildItem(8, 2, "WebEdit", 0)

Thanks
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Link in a webtable in a webtable Soulwalker 1 2,685 07-19-2017, 01:44 PM
Last Post: Ankur
  Problem with large webtable JoshS 0 1,686 08-26-2015, 04:04 AM
Last Post: JoshS
  Webtable actions are not getting recorded, but ObjectSpy is able to identify webtable sahilarora2000 2 3,620 06-13-2014, 04:27 PM
Last Post: vinod123
  Problem to set a data into a JavaEdit field bwillems 1 4,039 12-02-2010, 02:59 PM
Last Post: bwillems
  Compare an Array and data from a column in webtable SweetyChowdhury 1 3,228 09-03-2010, 11:13 PM
Last Post: rdemers25

Forum Jump:


Users browsing this thread: 1 Guest(s)