Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
RE: Webtable - GetCellData to LocalSheet - another question
#1
Solved: 11 Years, 4 Months, 4 Weeks ago Question 
Hello all!! How are you??
I'm new here, I'm working with QTP, and I have a doubt

I'm trying to Get a value from a webtable and I don't know how can I put in my LocalSheet.

I used this to get the text from the table:
Code:
CellText = Browser("Application").Page("Application").WebTable("Code").GetCellData(2, 1)
MsgBox CellText
The MsgBox is correct, but I can't find the way to put this value into my LocalSheet
I'm trying to use
Code:
DataTable.LocalSheet.AddParameter but still not working


Thank you in advance
Reply
#2
Solved: 11 Years, 4 Months, 4 Weeks ago
Hi Boludes,

You can go with any of the below ways:

Way1:
Code:
Datatable.LocalSheet.AddParameter "TableData",""
Datatable("TableData",dtlocalsheet)=CellText

Way2:
Code:
Datatable.LocalSheet.AddParameter "TableData",CellText
Reply
#3
Solved: 11 Years, 4 Months, 4 Weeks ago Question 
Thank you very much sreekanth chilam !
I will try these ways ass soon as I can

Thanks.
Reply
#4
Solved: 11 Years, 4 Months, 4 Weeks ago Shy 
Sorry for re-post Sad

Very well !! This new code works almost perfectly, becouse, How can I set the values in the rows, not in the columns??

Thanks in advance !
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  GetCellData not implemented aranucci 4 6,801 01-08-2014, 03:42 PM
Last Post: aranucci
  GetCellData() method ??? sumit_sehgal21 5 29,080 04-22-2013, 07:52 AM
Last Post: basanth27
  error whith getcelldata within actxtable frebuffi 1 2,949 02-27-2013, 03:03 PM
Last Post: Munna.Sarfraz
  Dependent iteration between global and localsheet zingcrazy 2 3,532 01-10-2013, 03:12 PM
Last Post: nilanjans
  GetCellData mv8167 8 18,078 03-01-2012, 10:33 AM
Last Post: inborntester

Forum Jump:


Users browsing this thread: 1 Guest(s)