Micro Focus QTP (UFT) Forums
problem with retieving the data from the webtable - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: problem with retieving the data from the webtable (/Thread-problem-with-retieving-the-data-from-the-webtable)



problem with retieving the data from the webtable - vijay44 - 02-03-2010

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


RE: problem with retieving the data from the webtable - vijay44 - 02-04-2010

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


RE: problem with retieving the data from the webtable - jojiraj - 05-25-2010

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