CARIS HPD : HPD® Server API : Paper Product Data : P_CHARTS : PUBLISH
 

PUBLISH

Set the status of the version of the input chart to be published. Creates a new NTM version of the chart.

All features on the chart must be verified in order to publish. The procedure first locks the chart to ensure that there are no outstanding edits. The procedure then checks to ensure that there have been changes to the chart since the previous published function, and throws an assertion if none are found.

Input

Parameter

Type

Description

v_chartver_id

NUMBER

ID of the version of the chart that is being published.

Output

Type

Description

NUMBER

ID of the new version of the chart.

Example

DECLARE

  v_project_id      CONSTANT PROJECT.PJ_ID%TYPE := 1;

  -- the chart version being published

  v_chartver_id     CONSTANT chart_version.chartver_id%TYPE := 23;

  v_new_id          chart_version.chartver_id%TYPE;

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);

  

   v_new_id := p_charts.publish (v_chartver_id);

END;

/

Exceptions

Unable to publish charts with unverified features.

Unable to publish charts with unverified raster sets.

This chart is locked by %s and cannot be edited.

Chart is closed and cannot be edited.