Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Passing Values between Datasheets
#1
Not Solved Question 
Say I have a QTP script which contains several reusable actions. The Global Datasheet contains a few parameters that are used by the other actions. So I want to pass these parameters between the actions’ datasheets. So logically I followed basic Excel functionality and did a point and click from one of the local datasheets to the global datasheets cell that I require. This works giving the following formula =Global!A1

A1 being the cell that I wanted to get the value of (i.e. Column A, Row 1).

However I will be reading in the Global Datasheet and the column headings may or may not reflect the “A” title. Therefore is it possible to re-write this formula (=Global!A1) so that it takes the column title that I have created in QTP? Eg. pUsername.

I logically tried to just do the following, but QTP did not like these:
=Global!”pUsername”1
=Global!pUsername1

I am looking for a solution to the above rather than alternative solutions, as I do have reasons for wanting to do it this way and I am aware that I could just take the parameter values from within the action.
Any help would be greatly appreciated.
Reply


Messages In This Thread
Passing Values between Datasheets - by D2010 - 03-30-2011, 04:52 PM
RE: Passing Values between Datasheets - by D2010 - 03-31-2011, 01:24 PM
RE: Passing Values between Datasheets - by Suba - 03-31-2011, 08:54 PM
RE: Passing Values between Datasheets - by Suba - 04-01-2011, 06:59 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Part of parameters missing when passing between actions skumar007 1 2,991 10-10-2014, 02:00 AM
Last Post: skumar007
  Migrating datasheets from Excel 97 to Excel 2010 drmzfire 5 3,231 05-06-2014, 03:08 PM
Last Post: drmzfire
  Action Parameter passing problem Qtpuser1 1 2,833 04-18-2014, 06:23 AM
Last Post: kgovadav
  Getting run error passing a Frame into a user defined function!!! sepgs2004 1 2,824 10-14-2013, 06:37 PM
Last Post: anil2u
  how to call reusable actions by passing parameters.? Arun091 0 3,876 08-16-2012, 07:28 PM
Last Post: Arun091

Forum Jump:


Users browsing this thread: 3 Guest(s)