how to access Local dataTables in another action within a same script - 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: how to access Local dataTables in another action within a same script (/Thread-how-to-access-Local-dataTables-in-another-action-within-a-same-script) |
how to access Local dataTables in another action within a same script - RA185112 - 07-20-2012 Hi, I have encountered an issue, where in I am working on 2 resuable actions within a same script. One resuable action has local data table with values. Now I want to use the same data table values in the 2nd reusable actions. Any ideas on how to get the value into 2nd reusable action. Regards, Rash RE: how to access Local dataTables in another action within a same script - sshukla12 - 07-20-2012 Hi, Jsut make ur local datasheet which u want to use is loaded with the corresponding action, Then in 2nd action use Datatable.GetSheet(sheetName), this will use the specified sheet as the current sheet and u can use the values of this particular data sheet. Let me know in case of any help required. Regards, Sankalp RE: how to access Local dataTables in another action within a same script - RA185112 - 07-20-2012 Thank you for your response. Could you please let me know how to load the inbuilt local datasheet of 1 action to 2nd action? Regards, Rash RE: how to access Local dataTables in another action within a same script - sshukla12 - 07-20-2012 U don't have to load the datatable to action2, when ur script runs datatable to corresponding actions loads automatically if it is its local datatable. Just use Datatable.Getsheet(<action 1 local datasheet>) it will make datasheet of action 1 as a active datasheet and u can fetch the values from that. Regards, Sankalp RE: how to access Local dataTables in another action within a same script - RA185112 - 07-25-2012 Thanks It worked RE: how to access Local dataTables in another action within a same script - sshukla12 - 07-25-2012 Glad to hear it worked for u. Regards, Sankalp |