Plumtree PEIs  
 

IUserProfileActions.OnBeforeChangeUserProfile Method 

This functions was created to allow for some kind of verification of data to occur when a user tries to change their user profile. It gets called every time the editor attempts to save a page.

Warning: Values in _htFormData are String Arrays (String[]).
e.g.:
String[] arrVals = (String[]) _htFormData.GetElement(sKey);
String sVal = arrVals[0];

string OnBeforeChangeUserProfile(
   AActivitySpace _asCurrentSpace,
   IPTSession _ptUserSession,
   XPHashtable _htFormData,
   XPHashtable _htPropObjs
);

Parameters

_asCurrentSpace
- Provides access to the current MVC classes as well as the Application and the HTTP Session
_ptUserSession
- Plumtree session object for the current user
_htFormData
- This parameter referes to all of the data that the user is dealing with. It would correspond to each piece of the User Profile View.
_htPropObjs
- This parameter is a hashtable containing all of the necessary Property data, using the html input name as the key. With the Property object, information such as the id, name, and type can be retrieved.

Return Value

String - This will be a string containing a error message if the data was incorrect or if the process should not continue otherwise it will be null or "".

See Also

IUserProfileActions Interface | com.plumtree.portalpages.pei Namespace