Skip to main content

TdxPSDBBasedExplorer.FindItemByID(Integer) Method

Returns a report item by its ID.

Declaration

function FindItemByID(AnID: Integer): TdxPSDBBasedExplorerItem; virtual;

Parameters

Name Type
AnID Integer

Returns

Type
TdxPSDBBasedExplorerItem

Remarks

Use the FindItemByID method to obtain a report item object with the specified ID. The desired item’s ID should be passed as the AnID parameter. Note that if the Items dataset doesn’t contain an item with the specified ID, the method returns nil.

You can also use the base class FindCustomItemByUniqueID method to access report items by their IDs. If you need to access folders only, use the FindFolderByID method.

If you need to get a report item by its name, you can use the items dataset to locate the item, retrieve the corresponding ID and pass it to the FindItemByID method.

See Also