Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
About Data Table
#1
Solved: 10 Years, 9 Months, 1 Week ago
Hi

i am using the script to create one parameter in runtime data table
Code:
DataTable.Addsheet("MYsheet").Addparameter("Arrival","London")
My question is : how to add the second value with same parameter.

First value is : London
Second value is : Paris (how to add with same parameter)
Reply
#2
Solved: 10 Years, 9 Months, 1 Week ago
Second value will be created in second iteration right? so you need to set the row( Datatable.SetNextRow) to the second one and then add the value.
Want to fast track your QTP/UFT Learning? Join our UFT Training Course
Reply
#3
Solved: 10 Years, 9 Months, 1 Week ago
Hi Ankur

Can you tell me the script to add tha second value with same parameter in datatable?
Reply
#4
Solved: 10 Years, 9 Months, 1 Week ago
Hi Raj,

Try using this code

Code:
Datatable.SetNextRow
DataTable.GetSheet ("MySheet").AddParameter "Arrival, London", "8:00"
Reply
#5
Solved: 10 Years, 9 Months, 1 Week ago
Hi Raj,

Try this code.I've used SetNextRow property but it's not setting cursor to next row then i've used setcurrentrow property.Here is the code ,Can anyone tell me where i'm doing wrong?

Code:
p=datatable.AddSheet ("My").AddParameter("city","New York")

i=datatable.GetSheet ("My").getcurrentrow
msgbox i 'This will give 1 as the current row is 1.

q=datatable.GetSheet ("My").SetNextRow 'This one is getting null value.It should show 2
'but nothing
msgbox q

datatable.getsheet("My").Setcurrentrow(2) 'then i've used this cuz i know my current
'row index is 2

datatable.Value("city",3)="bombay"

Thanks to all for there help.
Reply
#6
Solved: 10 Years, 9 Months, 1 Week ago
Hi newqtp
Thankyou for your information. My problem is solved.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  data table use uft_usr 1 2,107 06-29-2016, 05:23 PM
Last Post: Ankesh
  Writing to Run time data table Neetha 5 11,664 08-27-2015, 10:18 AM
Last Post: supputuri
  Retrieving data from web table nsuresh316 1 2,962 03-03-2014, 08:29 AM
Last Post: basanth27
  How to get data from data table in Ascending order dipashri 1 3,449 01-28-2014, 09:54 PM
Last Post: jacosta
  Data Table Query Suma Parimal 4 4,474 01-21-2014, 12:50 PM
Last Post: Suma Parimal

Forum Jump:


Users browsing this thread: 1 Guest(s)