Siebel Object Interfaces Reference > Interfaces Reference > Application Methods >

SetProfileAttr


SetProfileAttr is used in personalization to assign values to attributes in a user profile.

Syntax

SetProfileAttr name, value

Parameter
Description
name
A string indicating the name of the attribute
value
The value of name

Returns

Not applicable

Usage

SetProfileAttr assigns the value value to the attribute in a user profile indicated by name. If the profile attribute specified in the parameter string already exists, the corresponding persistent profile attribute in the application is updated with the new value. If the profile attribute specified in the parameter string does not exist in the list of persistent profile attributes, it is created as a dynamic profile attribute, without quotation marks encompassing the name.

Used With

Browser Script, COM Data Control, COM Data Server, Server Script, CORBA Object Manager, Java Data Bean, Mobile/Dedicated Web Client Automation Server

See Also

Name. For more information on user profile attributes, read Applications Administration Guide.

Example

Here is an example for Browser Script:

function Applet_PreInvokeMethod (name, inputPropSet)

{
   if (name == "hobbyReq") {
      var hobby = theApplication().GetProfileAttr("Hobby");

      
      if (hobby == "") {
         hobby = prompt("Please enter your favorite hobby");      
         theApplication().SetProfileAttr("Hobby", hobby);
      }
      return ("CancelOperation");
   }
   else
      return ("ContinueOperation");
}


 Siebel Object Interfaces Reference 
 Published: 18 June 2003