RepoItem iteration finding value (usercode)
Posted: Wed Nov 06, 2019 2:08 pm
Hello!
I have been using ranorex for quite a while, however only have written a few basic user codes. I came accross the following screen: which is developed in Oracle Forms (...I know...)
This list automatically gets filled with a date value in the first column, after pressing a green checkmark previously. The date, that gets filled is always the first day of the next month. So, if I pressed the button on 28th Oct, then the date will be 1st Nov.
What I would like to do is to validate this date on the repoItem and if found, then click in the cell.
If I were to take the item's index value, it would start from
My ultimate goal is, that I would like to find the date in the first column, that I set in the dateVal, and then click on it.
Could you please help me with such a user code, or provide a similar reference to this? I would highly appreciate it!
And again, it is not a usual table, so it is not consistent enough to do a simple iteration, so far I am concerned.
Thank you very much!
Oliver
I have been using ranorex for quite a while, however only have written a few basic user codes. I came accross the following screen: which is developed in Oracle Forms (...I know...)
This list automatically gets filled with a date value in the first column, after pressing a green checkmark previously. The date, that gets filled is always the first day of the next month. So, if I pressed the button on 28th Oct, then the date will be 1st Nov.
What I would like to do is to validate this date on the repoItem and if found, then click in the cell.
It does look like a table, however it is not. The repoitem is:public static void TryFindColumnItem(RepoItemInfo columnInfo, string dateVal)
So, for every cell you see in the first column, is the same accessible name.//text[@accessiblename='fromDate']
If I were to take the item's index value, it would start from
This list gets dynamically extended as it fills up.//text[27]
My ultimate goal is, that I would like to find the date in the first column, that I set in the dateVal, and then click on it.
Could you please help me with such a user code, or provide a similar reference to this? I would highly appreciate it!
And again, it is not a usual table, so it is not consistent enough to do a simple iteration, so far I am concerned.
Thank you very much!
Oliver