Micro Focus QTP (UFT) Forums
Capturing output value into a 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 Regular Expressions (https://www.learnqtp.com/forums/Forum-UFT-QTP-Regular-Expressions)
+--- Thread: Capturing output value into a datatable (/Thread-Capturing-output-value-into-a-datatable)



Capturing output value into a datatable - ndumbane - 04-11-2012

Hi to all,

I am new to the forum. I am trying to capture some dynamic values from a screen and add them to a second column in the QTP datatable. The numbers are automatically generated after submission and I would like QTP to automatically capture and input them into the datatable. Once this second set of numbers is created, it would also be used for others items (i.e Purchase Order, Voucher) on separate scripts ( see below the sequence) I have tried many times, but it does not work. Your help would be much appreciated.

Requisition number--->Purchase Order number----> Voucher number

Thank you

Ndumbane.


RE: Capturing output value into a datatable - sshukla12 - 04-11-2012

Hi,
first capture the values from the application store it in global data table
Code:
Datatable.Value("xx")="yy"
Use this datatable across actions to use the values generated within different actions.

Regards,
Sankalp