Show / Hide Table of Contents

FCSession Class Members

The following tables list the members exposed by FCSession.

Public Properties

|   | Name | Description | | --- | --- | --- | | Public Property | ConfigItems | Collection of CRM session configuration items.   | | Public Property | ConvertTimeZone | Sets whether or not any DateTimes will be translated to and from ServerTimeZone and LocalTimeZone. Default value is false.   | | Public Property | CreationTime | Timestamp when the session was created.   | | Public Property | CurrentCulture | Returns the Culture being used by the session.   | | Public Property | DataRestrictionsEnabled |   | | Public Property | DefaultCulture | Returns the default Culture being used by the session.   | | Public Property | DefaultDistinctGenerics | Sets whether or not newly created generic objects will have IsDistinct set to include all relation data fields during Queries.

  | | Public Property | DisableDataConversions | Sets whether data conversions happen when GenericDataRow fields are modified.   | | Public Property | IncludeRelations | Sets whether or not newly created generic objects will include all relation data fields during Queries.   | | Public Property | Item | Get or set session data indexed by specified key.   | | Public Property | Items |   | | Public Property | LastLoadTime | Timestamp when the session was last loaded via FCApplication.GetSession   | | Public Property | LocalTimeZone | The TimeZone being used by the session.   | | Public Property | Log | Returns a Logger useful for logging application events or errors to the logging system.   | | Public Property | LoginType | Returns the login type of the logged-in user.   | | Public Property | MaximumRows |   | | Public Property | PasswordRequired | Gets whether or not a password was used when CreateSession was called.   | | Public Property | QueryEmptyToNull |

Sets whether or not new newly created generic objects  convert filters on empty strings into filters on Queries that check Is NULL or IS NOT NULL.

  | | Public Property | RestrictionGroup | Returns the data restriction group being used by the session.   | | Public Property | SessionData |   | | Public Property | SessionID |

Returns the session's unique identifier.

  | | Public Property | SetNullStringsToEmpty | Sets whether or not newly created generic objects will convert a null reference (Nothing in Visual Basic) to empty strings.   | | Public Property | TruncateStringFields | Sets whether or not newly created generic objects will truncate string fields if they are too long.   | | Public Property | UserID | Returns the unique identifier for the session's logged-in user.   | | Public Property | UserName | Returns the login name for the session's logged-in user.   |

Public Methods

|   | Name | Description | | --- | --- | --- | | Public Method | ChangePassword | Change the password for the session user.   | | Public Method | ChangeRestrictionGroup | Changes the RestrictionGroup the session is currently using. The change can be made permanent.   | | Public Method | CloseSession |   | | Public Method | ConvertDate | Overloaded. Converts a DateTime from one TimeZone to another.   | | Public Method | ConvertFromLocalToServerDate | Converts a DateTime from the session timezone to the server timezone.   | | Public Method | ConvertFromServerToLocalDate | Converts a DateTime from the server timezone to the session timezone.

  | | Public Method | Dispose |   | | Public Method | FormatElapsedTime | Overloaded. Formats an numeric value in seconds into a string "DDD HH MMM" where: D=Days, H=Hours, M=Minutes   | | Public Method | GetAssignedPermissions |   | | Public Method | GetCurrentDate | Retrieves the DateTime of the CRM database.   | | Public Method | GetCurrentServerDate | Retrieves the DateTime of the CRM database.   | | Public Method | HasPermission |   | | Public Method | RefreshContext | Refresh the session information for the logged-in user.   | | Public Method | RegisterLicenseRequirements |   | | Public Method | SaveSession |   | | Public Method | SetPassword | Change a user's password   |

Reference

FCSession Class
FChoice.Foundation Namespace

Back to top © 2022 Dovetail Software, Inc. - All rights reserved.
Clarify, Amdocs, and related products and names are copyright and trademark of Amdocs, Inc.
.NET, Visual Studio.NET, C#, Visual Basic and related products are trademark of Microsoft corporation.