variables.version = "3.5";
variables.svnBuild = "154";
var appConfig = getAppConfig();
if ( StructKeyExists(appConfig,"CE_NAME") )
return appConfig.CE_NAME;
else
return "Profile";
var appConfig = getAppConfig();
if ( StructKeyExists(appConfig,"CE_ID_FIELD") )
return appConfig.CE_ID_FIELD;
else
return "userid";
var appConfig = getAppConfig();
var retVal = false;
// Get the ENABLE_ONE_WAY_SYNC flag from the config element
if ( structKeyExists(appConfig,"ENABLE_ONE_WAY_SYNC") AND isBoolean(appConfig['ENABLE_ONE_WAY_SYNC']) )
{
if ( appConfig['ENABLE_ONE_WAY_SYNC'] )
retVal = true;
}
return retVal;
var appConfig = getAppConfig();
var retVal = "delete"; // delete / deactivate
var dropOptions = "delete,deactivate";
// Get the ONE_WAY_SYNC_DROP_TYPE setting from the config element
if ( structKeyExists(appConfig,"ONE_WAY_SYNC_DROP_TYPE") AND LEN(TRIM(appConfig['ONE_WAY_SYNC_DROP_TYPE'])) )
{
if ( ListFindNoCase(dropOptions,appConfig['ONE_WAY_SYNC_DROP_TYPE']) )
retVal = appConfig['ONE_WAY_SYNC_DROP_TYPE'];
}
return retVal;
var appConfig = getAppConfig();
var retVal = false;
// Get the DISABLE_CMDAPI_REMOTE_CALLS flag from the config element
if ( structKeyExists(appConfig,"DISABLE_CMDAPI_REMOTE_CALLS") AND isBoolean(appConfig['DISABLE_CMDAPI_REMOTE_CALLS']) )
{
if ( appConfig['DISABLE_CMDAPI_REMOTE_CALLS'] )
retVal = true;
}
return retVal;
var appConfig = getAppConfig();
var retStr = "userid";
// Get the PAGE_NAME_FIELD from the config element
if ( structKeyExists(appConfig,"PAGE_NAME_FIELD") AND LEN(TRIM(appConfig['PAGE_NAME_FIELD'])) )
retStr = appConfig['PAGE_NAME_FIELD'];
// Make sure its a valid name of a field in the Profile Element or Profile Object
return retStr;
var appConfig = getAppConfig();
var retVal = false;
// Get the DISABLE_USER_PROFILE_EDIT flag from the config element
if ( structKeyExists(appConfig,"DISABLE_USER_PROFILE_EDIT") AND isBoolean(appConfig['DISABLE_USER_PROFILE_EDIT']) )
{
if ( appConfig['DISABLE_USER_PROFILE_EDIT'] )
retVal = true;
}
return retVal;
var appConfig = getAppConfig();
var retVal = "general";
// Get the DEFAULT_ROLE flag from the config element
if ( structKeyExists(appConfig,"DEFAULT_ROLE") AND LEN(TRIM(appConfig['DEFAULT_ROLE'])) )
retVal = appConfig['DEFAULT_ROLE'];
return retVal;
application.ptProfile.version = variables.version;
application.ptProfile.svnBuild = variables.svnBuild;
// Call the service function to allow App customizations
application.ptProfile.profileService.loadPostInit();