Recording Module requiring Data binding of Repo Variable

Ranorex Spy, Recorder, and Studio.
Pixi6s
Posts: 92
Joined: Tue Jun 28, 2011 8:57 pm

Recording Module requiring Data binding of Repo Variable

Post by Pixi6s » Mon Feb 13, 2012 3:37 pm

My repo is using a Variable "Domain" that is referred to by all the repo paths.

When i create a Recording Module it automatically adds the Variable "Domain" and requests it to be bound. This use to be fine because I would set the variable once to a global variable. Now I need the repo variable "Domain" to be flexible and change during the run, so I do not want to bind it to a global variable or data element.

My code module just reads in the "Domain" variable as I set it in the repo, and when i update the value of the repo variable it uses the new value.

Is there anyway around this besides converting my Record Modules to Code Modules?

Thanks
Sierra

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Recording Module requiring Data binding of Repo Variable

Post by Support Team » Tue Feb 14, 2012 1:29 pm

Hi,

You can also set the value of the specific repo variable via an User Code action within your normal Recording.
Just add a new User Code to your action table and now you are able to set it via code like:
repo.yourRepoVariable = "YourValue";
Regards,
Markus
Ranorex Support Team
.
Image