GetRowChildren Function

Class

HtmlColumn class, HtmlTable class.

Action

Returns the images, controls, and links contained in a row in a column or table.

Availability

This functionality is supported only if you are using the Classic Agent.

Syntax

lwChildren = object.GetRowChildren (Row)
Variable Description
lwChildren The images, controls, and links contained in Row. LIST OF WINDOW.
Row The row in the column or table. TABLEROW.

Notes

GetRowChildren() is not designed to work on tables with empty cells. When you need to obtain the list of children from a table that has empty cells, use HtmlColumn::GetRowChildren(). If you have a table that has a mix of empty cells and cells with multiple items, do not use HtmlTable::GetRowChildren(). Micro Focus recommends using HtmlColumn::GetRowChildren() if a table has empty cells.

Examples

The following examples use the Catalog table on the Online Catalog page in the GMO Web application.

Example 1

Specifying a column:

LIST OF WINDOW lwChild
lwChild = CatalogPage.CatalogTable.ItemName.GetRowChildren(2)
ListPrint(lwChild)

// Result (column contains one link):
// CatalogPage.CatalogTable.ItemName.ExternalFrameBackpack

Example 2

Specifying a table:

LIST OF WINDOW lwChild
lwChild = CatalogPage.CatalogTable.GetRowChildren(2)
ListPrint(lwChild)

// Result (row contains one link and one control):
// CatalogPage.CatalogTable.ItemName.ExternalFrameBackpack
// CatalogPage.CatalogTable.OrderQuantity.OrderQuantity2