Update a Classification Value

Use this API to modify classification hierarchy values. It returns 1 for transaction success and 0 for failure. It also returns a PVALUES collection that includes error messages for any terms that could not be updated.

Name

CDR_PUB_CLA_HIERARCHY_VALS.UpdateValues

Signature

FUNCTION UPDATEVALUES( 
  P_API_VERSION  IN    NUMBER, 
  P_INIT_MSG_LIST  IN    VARCHAR2 := CDR_PUB_DEF_CONSTANTS.G_FALSE, 
  P_COMMIT  IN    VARCHAR2 := CDR_PUB_DEF_CONSTANTS.G_FALSE, 
  P_VALIDATION_LEVEL  IN    NUMBER := CDR_PUB_DEF_CONSTANTS.G_VALID_LEVEL_FULL, 
  PVALUES  IN OUT    CDR_HIER_VAL_COLL 
) RETURN PLS_INTEGER; 

Return

Type PLS_INTEGER

  • 0 is returned if the transaction fails.
  • 1 is returned if the transaction succeeds.

PVALUES returns a collection that includes error messages for any terms that could not be updated.

Parameters

This API has standard parameters (see Standard Parameters) and the following parameter:

PVALUES (Mandatory) This is a collection of CDR_HIER_VAL_TYPEs. For each classification value (term) that you want to modify, initialize a CDR_HIER_VAL_TYPE and then extend the collection.

The following attributes are required: CONTENT_ID,TERM,APPROVED_FLAG.

You can modify the term itself or its Approved flag value.