Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to access Local dataTables in another action within a same script
#1
Solved: 11 Years, 3 Months, 4 Weeks ago
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
Reply
#2
Solved: 11 Years, 3 Months, 4 Weeks ago
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
Reply
#3
Solved: 11 Years, 3 Months, 4 Weeks ago
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
Reply
#4
Solved: 11 Years, 3 Months, 4 Weeks ago
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
Reply
#5
Solved: 11 Years, 3 Months, 4 Weeks ago
Thanks It worked Smile
Reply
#6
Solved: 11 Years, 3 Months, 4 Weeks ago
Glad to hear it worked for u. Smile

Regards,
Sankalp
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Local System Monitor kbhargava505 0 2,526 10-16-2015, 12:52 PM
Last Post: kbhargava505
  Case changes while reading values from inbuilt datatables krishnakittu03 3 2,974 04-28-2015, 11:34 AM
Last Post: kbhargava505
  Local script to make compatible with QC automation2012 1 2,304 01-28-2015, 02:11 PM
Last Post: automation2012
  How to Create and use local repository Sourabh146 2 2,560 01-28-2014, 10:56 PM
Last Post: jacosta
  Can we access a table element in Script at runtime without a corr. test object? sepgs2004 1 3,049 10-14-2013, 07:05 PM
Last Post: anil2u

Forum Jump:


Users browsing this thread: 3 Guest(s)