following scenario:
I need to conditionally execute a Click() event on a repository item, where the repo item has a variable in its RxPath.
This works without issues when using a separate smart folder with a condition on it.
Downside is, when copying the whole folder between different data sources the condition always loses its reference and needs to be reset, which is cumbersome and error-prone (I am not the only one doing this and there are some smart folders of same implementation).
So my decision is to put the condition in UserCode, where it does not lose any reference, but I can't get it to work because the variable stays always empty in repository.
RxPath of repo item:
Code: Select all
tag[#$id]
Code: Select all
if (!string.IsNullOrEmpty(attributeTab))
{
myRepo.tab_ById.Click();
}
I tried to add the $id variable also to the UserCode Module, and I see its value there correctly, but the RxPath of the repo item still does not know about it.
Any ideas?
thanks!