How to add multiple values in rows, under a single column of
a run time datatable?

Answers were Sorted based on User's Feedback



How to add multiple values in rows, under a single column of a run time datatable?..

Answer / uday

datatable.GetSheet(1)
For i=1 to 5
datatable.SetCurrentRow(i)
datatable.Value(1,1)=i
Next

Is This Answer Correct ?    7 Yes 3 No

How to add multiple values in rows, under a single column of a run time datatable?..

Answer / srihari prasad nayak

21
45
87

Is This Answer Correct ?    2 Yes 9 No

How to add multiple values in rows, under a single column of a run time datatable?..

Answer / saff

BY importing the data from external excel sheet

1) first addsheet
2) importheet from excel to the local datatable

datatable.addsheet(tagretsheet)
datatable.importsheet sourcefile,sourcesheet,targetsheet

or else

u can manualy give the values into the shhet

datatable.value(parametername,sheetname)=parametervalue

Is This Answer Correct ?    5 Yes 13 No

Post New Answer

More QTP Interview Questions

I have to automate webpage. If I click one hyperlink2 it will take 2 hrs to open. How to automate hyperlink2?

4 Answers   Cap Gemini, Polaris,


QTP Data Table Having 10 records with 10 to 15 fields(lets say).now i want to get alternative records from datatable.pls can any one answer it?

3 Answers   Syntel,


What is the recovery scenario in qtp?

0 Answers  


how we connect oracle or sql data server database to qtp. Hi Ram I was your answer for this. Can you kindly let me know in details steps on How we can connect to database. i am using QTP9.2 and SQL Server Database. I am new for QTP and this would be of great help.Thanks

2 Answers  


Can we set a timeout for the msgbox.I want the msgbox to disappear after 2 seconds during the script execution without clicking on the OK button manually.

6 Answers  


How to create an Action Template?

1 Answers  


Hi ,Can any one pleas explain how to test splash objects using QTP?

0 Answers   Value Labs,


How to retrieve the property of an object in QTP?

5 Answers  


How to find operating system information using the qtp script?

0 Answers  


I am using "QTP 9.0" in my system, need to install java add-ins to test the java based applications, please prvide information from where i can get those java add-ins for QTP 9.0

0 Answers   Infosys,


What are the common defects found in your project? (in qtp interview)

0 Answers   TCS,


In a page i have N number of links at a time i would like to open those links by using QTP?how to do that?

2 Answers   Wipro,


Categories