How can SilkTest deal with dynamic tables?
If columns have objects in them, such as links or controls, SilkTest declares each of the links and controls when you record window declarations for the column.
If your application dynamically builds tables, such that you do not know at runtime how many rows there will be and consequently do not know how many objects there will be, you should not declare individual objects in tables. You should remove their declarations from those that SilkTest creates when you declare a window.
You can use the GetRowChildren method to get a list at runtime of all children (that is, controls and objects) in a specified row of a table or column.
The way to work with your dynamic table would be to use functions like GetRowCount and GetRowChildren to return the contents of each row, and then manipulate the returned row objects e.g. GetText on a text object.
Included below is one way of dealing with dynamically generated Html Tables.
[ ] LIST OF ANYTYPE rowChildren [ ] INTEGER i=0 [ ] INTEGER rowCount [ ] window wChild [ ] [ ] // Find Number of Rows [ ] rowCount=HtmlTable.GetRowCount() [ ] [ ] //Loop for each row in dynamic table [-] for (i = 1; i