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

How Can I automate PDF forms using QTP9.2 ?

0 Answers  


How can i open a file in Textpad and replace a string with another using QTP

1 Answers   Wipro,


Can we use same virtual objects in many number of tests?

1 Answers   TCS,


When u ll use Record Button in QTP?Is VB script is Mandatory in QTP? What is Meaning of Frame("v1")?

1 Answers   TCS,


What are objects? how do you select the unknow object?

3 Answers  






what is difference betweem class annd object?

1 Answers  


Using Regular expression method some particular value is not present in given value. HOow do use regular expression? Forexample password all number,character ,special character are accepted but (_',)underscore,comma are not used. How do write regular expression.

1 Answers  


We have 10 page.In first page we 2 popup and next page we 3 popup window......(windows name is different)how can we handle the all the popups without using recovery scenario

1 Answers   HK, TCS,


What kind of performance is expected on the client side (e.g., how fast should pages appear, how fast should animations, applets, etc. load and run)?

0 Answers  


Explain types of exception handling and script for that?

2 Answers  


How To write script in QTP For Field Validation Example: password Field is accepting A range 8-20 characters only.How to write script?

3 Answers  


Pls Solve Error(SAP-CRM):- Cannot identify the specified item of the SAPNavigationBar object.Canfirm that the specified item is included in the object's item collection.

1 Answers  


Categories