Add or change a source registry attribute. The attribute class must be defined in the HPD dictionary.
Input
Parameter | Type | Description |
|---|---|---|
registry_id | NUMBER | The primary key of the source entry to be edited. |
acronym | NUMBER | The attribute acronym. The default catalogue includes the following attributes: SRCCOM, DOCFIL, DOCLOC, MEDTYP. |
v_attvalue | VARCHAR2 | The value of the new attribute, dependent on the attribute class format. Use "NULL" to set an existing value to UNDEFINED. List values can be passed in as a comma- separated list such as "1,4,5". |
ExampleRY_MANAGER.ADDREGISTRYATTRIBUTE
declare v_registry_id CONSTANT SOURCEREGISTRY.SOURCEREGISTRY_ID%TYPE := 1; v_ATTVALUE CONSTANT VARCHAR2 (500) := 'C:\sources\doc\doc12345.doc'; begin p_registry_manager.set_registry_attribute(v_registry_id, 'DOCFIL', v_ATTVALUE); end; / |
Exceptions
• Registry_id cannot be NULL.
• Registry ID <id> does not exist.
• Attribute <acronym> is not a source registry attribute.
• The catalogue does not define this attribute as being valid for a source registry.
• Invalid attribute value <value>.
• A list or enumerated value is not in the list of expected values for that attribute.
• Invalid attribute value <value> - expected a number
• This may be triggered by strings being passed into a numeric value, including enumerations and list values.
• Invalid Datatype found for attribute.