Skip to main content

TdxPSExplorerFolder.CreateItem(TBasedxReportLink) Method

Creates a new report item within the current folder.

Declaration

function CreateItem(AReportLink: TBasedxReportLink): TdxPSExplorerItem; virtual;

Parameters

Name Type
AReportLink TBasedxReportLink

Returns

Type
TdxPSExplorerItem

Remarks

Use the CreateItem method to create a new report item within the current folder. The report link that provides information for the created item is specified by the AReportLink parameter. The method returns an object representing the newly created item. Use this object’s methods and properties to initialize the item. For instance, you can set the desired item’s name using the object’s Name property. Also you can use the explorer’s CreateNewItem method for this purpose. In that case, you will pass the item’s parent folder as the method’s parameter.

When using the explorer components (TdxPSFileBasedExplorer and TdxPSDBBasedExplorer), the method will return either the TdxPSFileBasedExplorerItem or TdxPSDBBasedExplorerItem object. Thus, you will then need to typecast to use the created item’s specific members.

See Also