Micro Focus QTP (UFT) Forums
Global v Local DataTable - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Global v Local DataTable (/Thread-Global-v-Local-DataTable)



Global v Local DataTable - Brian3 - 10-30-2008

Hey guys,

The application i am automating has a few thousand variables that i need to capture. Ive had space problems before when using the Global dataTable, so this time around when i make a checkpoint, im storing the output value in a local datasheet -
ie
Code:
variable = datatable.value("ColumnName", "ActionName")
so that depending on which action is running the output value goes to that actions dataTable.

The problem is when i create a new script and call these re-useable actions, the script fails saying that the dataTable cant be found.

Does anyone know where im going wrong?

Cheers,
Brian


RE: Global v Local DataTable - anemuday - 11-03-2008

Hey Brain,

The problem is the syntax you are following.

The syntax is :

Code:
datatable.value("Column Name","Sheet Name/Id")
not the action name.

Try out with SheetName/SheetId.

Let us know, if you still face this problem.

Thanks & Regards,
Uday.


RE: Global v Local DataTable - Brian3 - 11-13-2008

Hi Uday,

Unfortunately im still getting an error. When i run the script on it own its fine, but when i use some re-usable actions from this script in other scripts they fail because those scripts cant find the datasheet for these actions. Do you know if there is anything extra i should be adding to the above syntax if this particular action is being called from another seperate script?

Cheers,
Brian


RE: Global v Local DataTable - manojmathew1984 - 11-28-2008

My understanding is - There are two tests. a new script-test1 and a test having reusable actions -test2 and they have its own datatables.

at runtime try to import the datasheet of test2