Oracle9iAS Portal Developer Kit

set_attribute member procedure (varchar2)

Contained in package wwsto_api_session.

Call this procedure to set the varchar2 value of an attribute.

member procedure set_attribute

(

p_name in varchar2,

p_value in varchar2

);

Version: Oracle Portal 3.0.6.6.5 or later

Parameters:

p_name

The name of the attribute.

Datatype: in varchar2

p_value

The value to be stored.

Datatype: in varchar2

Exceptions:

This procedure raises no user-defined exceptions.

Example:

It is recommended that the provider implementation does not exist in the same schema as Oracle Portal. Therefore, calls to wwsto_api_session methods must be prefixed by the Oracle Portal owner schema, for example, PORTAL30.

declare
l_user_obj portal30.wwsto_api_session;
begin
l_user_obj := portal30.wwsto_api_session.load_session
 (

p_domain => 'PORTAL',
p_sub_domain => 'TEST'

 );

l_user_obj.set_attribute
  (

p_name => 'USERNAME',
p_value => 'USER1'

 );

l_user_obj.save_session;

Related topics

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