PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Properties specific to the description of sfDisconnectResult variables
  • Functions that handle the sfDisconnectResult type
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
sfDisconnectResult (Type of variable)
In french: sfRésultatDéconnecte (Type de variable)
The sfDisconnectResult type is used to find out the status report of SFDisconnect when disconnecting from a session. The characteristics of this type of variable can be defined and modified by several WLanguage properties.
Remark: See Declaring a variable for more details on the declaration of this type of variable and the use of WLanguage properties.
Versions 20 and later
WINDEVLinux This type of variable is now available for WINDEV applications in Linux.
New in version 20
WINDEVLinux This type of variable is now available for WINDEV applications in Linux.
WINDEVLinux This type of variable is now available for WINDEV applications in Linux.
Example
// Connect to Salesforce
Cnt is sfConnection
Cnt..Login = "vince@gmail.com"
Cnt..Password = "qwerty" + "XXB12VCZ54"
IF SFConnect(Cnt) = False THEN
Error("The connection failed")
RETURN
END
...
// Disconnection (second syntax)
MySessions is array of strings
Add(MySessions, Cnt..SessionInfo..SessionId)
MyResult is array of sfDisconnectResult
IF SFDisconnect(Cnt, MySessions, MyResult) = False THEN
 Error("A disconnection failed")
 Trace(MyResult[1]..Success) // Displays 0
END
Remarks

Properties specific to the description of sfDisconnectResult variables

The following properties can be used to handle the status report of SFDisconnect:
NameType usedEffect
ErrorArray of sfErrorStatus report of errors.
SuccessBoolean
  • True if the disconnection was performed,
  • False otherwise.
This property is available in read-only.

Remark: These properties can be used with one of the following syntaxes:
  • <Variable name>..<Property name>
  • <Variable name>.<Property name>

Functions that handle the sfDisconnectResult type

Versions 14 and later
SFDisconnect
New in version 14
SFDisconnect
SFDisconnect
Disconnect:
  • the Salesforce platform.
  • the current Salesforce session.
Minimum version required
  • Version 14
This page is also available for…
Comments
Click [Add] to post a comment