Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxPSDBBasedExplorer.FindItemByID(Integer) Method

Returns a report item by its ID.

#Declaration

Delphi
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