Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Passing Values between Datasheets
#2
Not Solved
If I understand correctly, you have a data sheet cell with the name "pUsername" and it contains the formula "Global!A1". You want to read this value and change it to "Global!pUsername". Is that correct?
Code:
DataTable.GetSheet("Global").GetParameter(i).Name

where "i" is a cell index. So if you want to get the name of cell 1 of the current row in a datasheet, you would do this:

Code:
cellName=DataTable.GetSheet("Global").GetParameter(1).Name

assuming the title of cell #1 in row x in the global sheet of your data table has title "pUsername", if I understand you correctly, you would do this:

Code:
formula=DataTable(1, dtGlobalSheet) ' returns the string "Global!A1"
tempTable=split(formula, "!")
newFormula=tempTable(0) & "!" & cellName ' returns "Global!pUsername"

Is this what you were looking for, or am I misunderstanding your goal?
Reply


Messages In This Thread
Passing Values between Datasheets - by D2010 - 03-30-2011, 04:52 PM
RE: Passing Values between Datasheets - by tdevick - 03-30-2011, 09:18 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: 2 Guest(s)