Page 1 of 1

RepoItem iteration finding value (usercode)

Posted: Wed Nov 06, 2019 2:08 pm
by oli129
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:
table.JPG
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.
public static void TryFindColumnItem(RepoItemInfo columnInfo, string dateVal)
It does look like a table, however it is not. The repoitem is:
//text[@accessiblename='fromDate']
So, for every cell you see in the first column, is the same accessible name.

If I were to take the item's index value, it would start from
//text[27]
table2.jpg
This list gets dynamically extended as it fills up.

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

Re: RepoItem iteration finding value (usercode)

Posted: Thu Nov 07, 2019 9:29 pm
by odklizec
Hi,

Please upload a Ranorex snapshot (NOT screenshot) of the problematic table? Without, at very least, snapshot, it’s very hard (if not impossible) to suggest something reliable.