Oracle9iAS Portal Developer Kit

copy_string procedure

Contained in package wwnls_api.

Call this method to copy all language strings for a specified name.

procedure copy_string

(

p_source_domain - in wwnls_strings$.domain%type,

p_source_sub_domain - in wwnls_strings$.sub_domain%type,

p_source_name - in wwnls_strings$.name%type,

p_destination_domain - in wwnls_strings$.sub_domain%type default null,

p_destination_sub_domain - in wwnls_strings$.sub_domain%type default null

l,

p_destination_name - in wwnls_strings$.name%type

);

The copy_string procedure can now copy over existing strings.

Version: Oracle Portal 3.0.6.6.5 or later

Parameters:

 p_source_domain

The name of the domain that contains the string to be copied.

Datatype: varchar2

p_source_sub_domain

The name of the subdomain that contains the string to be copied.

Datatype: varchar2

p_source_name

The name of the string to be copied.

Datatype: varchar2

p_destination_domain

The name of the domain to receive the copied string.

Datatype: varchar2

p_destination_
sub_domain

The name of the sub domain to receive the copied string.

Datatype: varchar2

p_destination_
name

The name under which the copied string will be saved.

Datatype: varchar2

Exceptions:

If the string cannot be copied, an NLS_EXECUTION_EXCEPTION is raised.

Example:

wwnls_api.copy_string
(

p_source_domain => 'domain_from',
p_source_sub_domain => 'sub_domain_from',
p_source_name => 'source_string',
p_destination_domain => 'domain_to',
p_destination_sub_domain => 'sub_domain_to',
p_destination_name => 'copied_string'

);

Related topics

The PL/SQL API Reference is part of the Portal Developer Kit on Portal Studio