PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Properties specific to the description of sfUserInfo variables
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
sfUserInfo (Type of variable)
In French: sfInfoUtilisateur (Type de variable)
The sfUserInfo type is used to get information about a user. The characteristics of this type of variable are returned by several WLanguage properties.
This type is used by the sfSessionInfo variables. The properties of this type are filled after the call to SFConnect.
Note: See Declaring a variable for more details.
Versions 20 and later
WINDEVLinux This type of variable is now available for the WINDEV applications in Linux.
iPhone/iPad This type of variable is now available for the iPhone/iPad applications.
New in version 20
WINDEVLinux This type of variable is now available for the WINDEV applications in Linux.
iPhone/iPad This type of variable is now available for the iPhone/iPad applications.
WINDEVLinux This type of variable is now available for the WINDEV applications in Linux.
iPhone/iPad This type of variable is now available for the iPhone/iPad applications.
Example
// Connection to Salesforce
Cnt is sfConnection
Cnt..Login = "vince@gmail.com"
Cnt..Password = "azerty" + "XXB12VCZ54"
IF SFConnect(Cnt) = False THEN
Error("The connection failed")
ELSE
Trace("Name of connected user: " +  ...
  Cnt..SessionInfo..UserInfo..FullName)
END
Remarks

Properties specific to the description of sfUserInfo variables

The following properties can be used to handle the information regarding a Salesforce user:
NameType usedEffect
UserDefaultCurrencyIsoCodeCharacter stringISO code of the default currency used by the user.
This property is available in read-only.
OrganizationDefaultCurrencyISOCodeCharacter stringISO code of the default currency used by the company.
This property is available in read-only.
EmailCharacter stringEmail of user.
This property is available in read-only.
TimeZoneCharacter stringTime zone of the user.
This property is available in read-only.
ProfileIdCharacter stringIdentifier of the user profile.
This property is available in read-only.
RoleIdCharacter stringIdentifier of the position (role) occupied by the user in the company.
This property is available in read-only.
OrganizationIdCharacter stringIdentifier of the company.
This property is available in read-only.
UserIdCharacter stringIdentifier of the user.
This property is available in read-only.
LanguageCharacter stringLanguage of the user. This parameter defines the language used for the captions of the controls in the application. The first two characters represent the ISO code of the language. These characters are followed by an underscore character (_) then by the ISO code of the country.
  • Example for the USA: "en_US".
  • Example for the French Canada: "fr_CA".
This property is available in read-only.
LoginCharacter stringLogin of user.
This property is available in read-only.
AccessibilityModeBoolean
  • True if the accessibility mode for the unsighted users is enabled,
  • False otherwise.
This property is available in read-only.
OrganizationMultiCurrencyBoolean
  • True if the company is using several currencies,
  • False otherwise.
This property is available in read-only.
FullNameCharacter stringFull name of the user.
This property is available in read-only.
OrganizationNameCharacter stringName of the user organization or company.
This property is available in read-only.
Versions 17 and later
RegionalSettings
New in version 17
RegionalSettings
RegionalSettings
Character stringLanguage used to define the regional settings (format of dates, symbols of currencies). The first two characters represent the ISO code of the language. These characters are followed by an underscore character (_) then by the ISO code of the country.
  • Example for the USA: "en_US".
  • Example for the French Canada: "fr_CA".
This property is available in read-only.
Caution: Before version 170078, this property was named "..Region". It was renamed from version 170078.
RegionCharacter stringProperty kept for backward compatibility. From version 170078, we recommend that you use ..RegionalSettings.
Language used to define the regional settings (format of dates, symbols of currencies). The first two characters represent the ISO code of the language. These characters are followed by an underscore character (_) then by the ISO code of the country.
  • Example for the USA: "en_US".
  • Example for the French Canada: "fr_CA".
This property is available in read-only.
CurrencySymbolCharacter stringSymbol of the currency used.
This property is available in read-only.
UISkinCharacter stringTheme used for the interface. Can correspond to:
  • "Theme1" if the user uses the interface named "Salesforce Classic".
  • "Theme2" if the user uses the interface named "Salesforce".
This property is available in read-only.
UserTypeCharacter stringType of user license assigned to the profile associated with the user.
This property is available in read-only.
Note: These properties can be used with one of the following syntaxes:
  • <Variable Name>..<Property Name>
  • <Variable Name>.<Property Name>
Minimum required version
  • Version 14
This page is also available for…
Comments
Click [Add] to post a comment