How to add a runtime parameter to a data sheet?

Answers were Sorted based on User's Feedback



How to add a runtime parameter to a data sheet?..

Answer / guest

Example:
Datatable.GetSheet("Global").AddParameter("NewColumn_Name")

This adds a new column called NewColumn_Name in the
datatable under Global Sheet

Is This Answer Correct ?    5 Yes 0 No

How to add a runtime parameter to a data sheet?..

Answer / prashanth

Ram and Sridevi are correct. we can even use like this

DataTable.GlobalSheet.AddParameter("Name", "Value")

Is This Answer Correct ?    3 Yes 0 No

How to add a runtime parameter to a data sheet?..

Answer / rams

You should also give the value to be added along with
column name.If dont want to give a value u can pass an
empty string
Datatable.GetSheet("Sheet name").AddParameter
("NewColumn_Name","Value")

Is This Answer Correct ?    1 Yes 0 No

How to add a runtime parameter to a data sheet?..

Answer / sreedevi

Datatable.GetSheet
("Global").AddParameter "NewColumn_Name","Value"

Is This Answer Correct ?    1 Yes 0 No

How to add a runtime parameter to a data sheet?..

Answer / punkhuri singh

DataTable.LocalSheet

The following example uses the LocalSheet property to return the local sheet of the run-time Data Table in order to add a parameter (column) to it.

MyParam=DataTable.LocalSheet.AddParameter("Time", "5:45")

Is This Answer Correct ?    0 Yes 0 No

How to add a runtime parameter to a data sheet?..

Answer / guest

Example:
Datatable.GetSheet("Global").AddParameter("NewColumn_Name")

This adds a new column called NewColumn_Name in the
datatable under Global Sheet

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More QTP Interview Questions

There is one parent browser and 'n' number of child browsers on desktop. Write a code to close all the child browsers but parent browser should not be closed.

1 Answers  


What is keyword view?

0 Answers  


How to release all resources file from the QTP?

0 Answers   Tech Mahindra,


How do u insert an object during runtime in qtp?

2 Answers  


hi radhaka plz tell me clearly to handle the earrors with out isng recovery scnerio this is sreenivas from delhi

2 Answers  






what is objectidentification?

2 Answers  


how to test one edit box using dotnet addin for Web Applications? write script?

2 Answers   NTT Data,


Cn u please clarify my doubt Where are micTab and micReturn used.Thanx in Advance

2 Answers  


Any body have QTP 9.5 licence key. please provide me at madhukar_dec30@yahoo.co.in

0 Answers  


Can you brief the hurdles you faced during Automation testing?

0 Answers  


How can we fill data in a text box without recording using object spy. Can you please provide the steps...

1 Answers   Hotel Jobs, TCS,


How do you do batch testing in QTP, if so explain?

2 Answers  


Categories