Call the Create Parameter API
To create a Parameter, call the API CDR_PUB_DF_PARAMETER.CREATEPARAMETER.
Enter parameter values as follows:
PROCEDURE CREATEPARAMETER( 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, X_RETURN_STATUS OUT VARCHAR2, X_MSG_COUNT OUT NUMBER, X_MSG_DATA OUT VARCHAR2, PIO_PARAMNAMING IN OUT CDR_NAMING_VERSION_OBJ_TYPE, PIO_CDRPARAMOBJTYPE IN OUT CDR_PARAMETER_OBJ_TYPE, PI_CREATE_OBJECT IN VARCHAR2, PI_INSTANCE_SUBTYPE_ID IN CDR_NAMINGS.OBJECT_SUBTYPE_ID%TYPE, PI_PARENTNAMING IN OUT CDR_BASE_OBJ_TYPE, PO_DEFCLASSIFICATIONCOLL IN CDR_CLASSIFICATIONS_COLL );
- PIO_PARAMNAMING. Enter CDR_NAMING_VERSION_OBJ_TYPE values as follows:
- company_id =
Enter_your_company_ID
- obj_id = null
- obj_ver = null
- object_type_rc =
'$OBJTYPES$PARAMREF'
- name = '
Enter_a_name_for_the_Parameter_instance
' - namespace_obj_id =
Enter_the_Parameter_Set_ID
- namespace_obj_ver = 1
- namespace_start_obj_ver = 1
- namespace_end_obj_ver=
cdr_def_constants.cdr_max_def_object_version
- owning_location_rc = null
- checked_out_flag_rc =
'$YESNO$NO'
- checked_out_id = null
- object_subtype_id = null
- description =
'Enter_a_Description_for_the_Parameter_instance
' - copied_from_company_id = null
- copied_from_obj_id = null
- copied_from_obj_ver = null
- ref_company_id =
Enter_your_company_ID
- ref_obj_id =
Enter_the_obj_ID_of_the_Parameter_definition_this_Parameter_instance_references
- ref_obj_ver = 1
- object_version_number = 1
- status_rc =
'$NAMING_STATUS$INSTALLABLE'
- validation_status_rc = null
- version_label = null
- company_id =
- PIO_CDRPARAMOBJTYPE. Do not enter any values.
- PI_CREATEOBJECT. Enter
INST
. - PI_INSTANCE_SUBTYPE_ID. Null
- PI_PARENTNAMING. Enter the following CDR_BASE_OBJ_TYPE values. The first four apply to the Parameter Set into which you are putting the Parameter instance. The last two (namespace) attributes apply to the Adapter Area, which is the parent of the Parameter Set.
- company_id = Enter your company ID; see Getting Your Company ID.
- obj_id = Enter the Object ID of the Parameter Set.
- obj_ver = 1
- object_version_number = 1
- namespace_obj_id = Enter the Object ID of the Adapter Area.
- namespace_obj_ver = 1
- PO_DEFCLASSIFICATIONCOLL. Null
Parent topic: Creating a Parameter Instance in a Parameter Set