Oracle Forms: Multi-Record blocks not interpreted as tables
Posted: Wed Feb 17, 2016 2:09 pm
I've noticed that with object identification, multi-record blocks are not interpreted as a table, even though the structure of these blocks largely resembles one. This messes up my object identification: I'd like to identify a container or cell by row and column indexes. In this example, I'd like to know if a certain row with Code column value 'x' and Omschrijving value 'y' is activated, regardless of its position in the table, to build a solid verification that doesn't fail once for any reason the order of the items in the table slightly changes. Also, I'd like to build some code to loop through rows in order to find a certain combination of values within a row and activate the appropriate checkbox.
Here's a screenshot of how this collection of containers looks like (the 'Heffing panel):
Currently, Ranorex basically makes identifying a counting affair of container indexes: the text fields in the 'Code' column are counted as text-containers 1 through 24, the 'Omschrijving' column is seen as text-containers 25 through 49 or so. The checkboxes seem to have a certain technical id. I’ve placed some examples of identification in the next paragraph. This is not a suitable solution once the amount of rows exceeds the visible range of the screen, I suppose the counting of indexes will no longer work that well. Also, I don't like being dependent on validating / activating objects blindly based on their position in the grid, it will be tough maintaining these kinds of validations because the application is littered with these kinds of multi-record blocks.
This is how one of those text containers looks like in the repository: /container[@type='DrawnPanel']/text[33]
And a checkbox:
/container[@type='DrawnPanel']/container[1]/checkbox[@name='ItmChk24']
In forms builder, this is a ‘multi-record block’, which to my knowledge should translate to a table.
To summarize;
• I'd like to know if there's any way to get Ranorex to interpret the collection of containers in the 'Heffing' panel as a table.
• Once it's a table I'd like to know how to activate a checkbox/validate its state if a certain row has value 'x' for Code and 'y' for Omschrijving.
• If it's not possible to make a table out of these containers, what would be a viable alternative?
Snapshot of the container of basetype 'scrollbox' in which these elements reside included.
Ranorex version: 5.4.0.2.24580
OS: Windows 7
Thanks in advance for your time!
Here's a screenshot of how this collection of containers looks like (the 'Heffing panel):
Currently, Ranorex basically makes identifying a counting affair of container indexes: the text fields in the 'Code' column are counted as text-containers 1 through 24, the 'Omschrijving' column is seen as text-containers 25 through 49 or so. The checkboxes seem to have a certain technical id. I’ve placed some examples of identification in the next paragraph. This is not a suitable solution once the amount of rows exceeds the visible range of the screen, I suppose the counting of indexes will no longer work that well. Also, I don't like being dependent on validating / activating objects blindly based on their position in the grid, it will be tough maintaining these kinds of validations because the application is littered with these kinds of multi-record blocks.
This is how one of those text containers looks like in the repository: /container[@type='DrawnPanel']/text[33]
And a checkbox:
/container[@type='DrawnPanel']/container[1]/checkbox[@name='ItmChk24']
In forms builder, this is a ‘multi-record block’, which to my knowledge should translate to a table.
To summarize;
• I'd like to know if there's any way to get Ranorex to interpret the collection of containers in the 'Heffing' panel as a table.
• Once it's a table I'd like to know how to activate a checkbox/validate its state if a certain row has value 'x' for Code and 'y' for Omschrijving.
• If it's not possible to make a table out of these containers, what would be a viable alternative?
Snapshot of the container of basetype 'scrollbox' in which these elements reside included.
Ranorex version: 5.4.0.2.24580
OS: Windows 7
Thanks in advance for your time!