IDatabaseTableValues

class IDatabaseTableValues

Bases: ImpactCOMWrapperBase, Iterable

Description:

A collection containing objects representing each child table that has related data to the parent object.

Remarks:

This collection contains objects representing each child table that has related data to the parent object. Each child table is referred to by its table relationship key rather than just its table name. This is because the same child table could be linked to the same parent using multiple relationships. If you know the table relationship key use it directly, otherwise you can determine the appropriate table relationship key from the IDatabaseTableRelationship.key property. Introduced in Impact 11.0.0.27.

Wraps a COM object or another wrapper instance. Accepts: - A valid impact_object - An existing impact_com_wrapper_base-derived instance

property count

Gets Count.

Description:

The number of items in this collection.

Returns:

The value of Count.

Return type:

count (int)

property needs_updating_count

Gets needs_updating_count.

Description:

Returns the number of IDatabaseTableRows objects that need updating.

Returns:

The value of needs_updating_count.

Return type:

needs_updating_count (int)

exists(name)
Description:

Determines if the collection currently contains an IDatabaseTableRows object for a specific table relationship key.

Parameters:

name (str) – Relationship key

item(index)
Description:

Use either an integer index, or a string table relationship key to retrieve the IDatabaseTableRows object.

Remarks:

If no table relationship data currently exists for a specific key then a new empty IDatabaseTableRows object is created and added to the collection.

Parameters:

index (any) – Specifies the index or relationship key of the object to retrieve.

refresh()
Description:

Reload all related table data for the parent object.

Remarks:

WARNING: Any added/modified/deleted table rows that have not been committed to the database will be throw away. This method is not applicable for internal data accessed from objects such as IDrawing or ILayer.