Sybernet / Supplied Procedures Reference
Release 3.00
Oct 14, 2002
backwards forwards

HTTP.SP_PUTPREFERENCE

This is one of three procedures for maintaining user preferences in Sybernet. Its primary purpose is to save user preferences for building the HTML body tag using SP_HTML_PREFERENCES. You can also use these procedures to temporarily (or permanently) store variables that may be shared between processes. These temporary variables, however, are user specific and persist until explicitly deleted with sp_delPreference. Two users logged into the same schema name share the same preference.

This procedure is used to create a user preference.

Syntax

Procedure SP_PUTPREFERENCE
(
    NAME                          VARCHAR2
,   VALUE                         VARCHAR2
)   ;

Parameters

Parameter Description
name
 
The case-sensitive user preference that is to be retrieved.
value
 
The value that is to be stored.

Example 1

The following example illustrates how to create a user preference:

http.sp_putPreference('FavoriteFood','Lasagne');

Example 2

The following example illustrates how to retrieve a user preference:

declare
    favoriteFood varchar(255);
begin
    http.sp_getPreference('FavoriteFood',FavoriteFood,'Pizza');
    http.writeln('Your favorite food is ' || FavoriteFood);
end;

Example 3

The following example illustrates how to delete a user preference:

http.sp_delPreference('FavoriteFood');

See Also

SP_DELPREFERENCE
SP_GETPREFERENCE


Sybernet is a trademark of SRI International.
Copyright © 1996-2008 SRI International. All Rights Reserved.
Denis D. Workman / http://Sybernet.sri.com/