Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Passing parameters dynamically to reusable actions
#1
Solved: 10 Years, 9 Months ago
I have a main script which dynamically reads from the global data sheet, and determines the action and parameters. I can build the parameter string dynamically. But how would I be able to execute it, since the parameters I build would be string.
Runaction actually requires you to enter parameters explicitly.

Thanks and regards,
PHK
Reply
#2
Solved: 10 Years, 9 Months ago
Hi
You can try the environment variable here. Save the dynamic values in Environment variable and use it in different actions
Reply
#3
Solved: 10 Years, 9 Months ago
I have a main script which dynamically reads from the global data sheet, and determines the action and parameters.

Hi,

1.You have to store the Parameters in Input and OutPut Parameters of Actions.

2.For Action2 you have to pass a parameter say "Customer Name" which is stored in Local sheet of Action1 then you can do it directly as below:
ex:
Code:
Window("Flight Reservation").WinEdit("Name:").Set DataTable.Value("Customer_Name", "Action1")
Reply
#4
Solved: 10 Years, 9 Months ago
Hi,

Try using Execute statement, only thing you will have to format your string correctly.
Example:
Code:
Execute "RUNACTION ""Action2"",oneiteration,OO"
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  UFT issues with Outsystems dynamically generated Id/names jherron 2 1,122 03-02-2020, 09:33 PM
Last Post: Swishy70
  Set data parameters Mik2s 1 1,272 03-07-2019, 10:18 PM
Last Post: supputuri
  Unable to capture value of Webelement which is changing dynamically sheetal 9 15,634 02-16-2018, 11:01 AM
Last Post: janki_kakadia
  Unable to click on dynamically changing webelement preeti 0 1,693 04-29-2017, 08:50 PM
Last Post: preeti
  Adding data into rows that add dynamically with setcelldata azar81 4 5,641 04-13-2015, 05:24 PM
Last Post: vidya2k2

Forum Jump:


Users browsing this thread: 1 Guest(s)