CARIS HPD : HPD® Server API : Source Data : P_HPDSOURCEAPI : CONFIRMDELETEOBJECT
 

CONFIRMDELETEOBJECT

To confirm the deletion of a source or collection object.

Input

Parameter

Type

Description

p_foid

NUMBER

The feature object identifier (FOID) as a number of the feature to confirm delete. See FOID Conversion Functions.

p_usage_id

NUMBER

The usage the feature exists on (NULL if collection)

p_project_id

NUMBER

The project to confirm delete the object with

Example

The following example shows the use of this function in a PL/SQL block.

DECLARE

  v_project_id      CONSTANT PROJECT.PJ_ID%TYPE := 1;

  v_usage_id        CONSTANT USAGES.USAGES_ID%TYPE := 1;

BEGIN

  -- Create a new 'save'. All edits are done under the specified project

  -- until a commit or rollback.

  P_SAVE_MANAGER.STARTNEWSAVE(v_project_id);

  P_HPDSOURCEAPI.ConfirmDeleteObject(2025493936704850547, v_usage_id, v_project_id);

END;

/

Exceptions

FOID 'FOID' does not exist.

Usage_id USAGE_ID is invalid or does not currently exist

Project_id PROJECT_ID is invalid or does not currently exist

Error: Usage_id must be NULL when Confirm Deleting Collections.

Feature FOID does not exist on usage_id USAGE_ID

Feature FOID cannot be Confirmed Deleted because current state is not Proposed Deleted.