connected property
- Last Updated: June 14, 2019
- 1 minute read
- OpenEdge
- Version 13.0
- Documentation
Returns a boolean that indicates the most recent online status of the current
JSDOSession object when it last determined if the web application it
manages was available.
If the property value is true, the object
most recently determined that the session is connected and logged in to its web application.
If its value is false, the session was last found to be
disconnected. The default value is false.
Note: Because of the dynamics of any network environment, the value of this
property might not reflect the current status of the object's connection to its web
application. You can therefore invoke the object's
ping( )
method (either explicitly or automatically by setting the value of its pingInterval property) to update the object's most recent online
status.
Data type:
boolean
Access: Read-only
Applies to: progress.data.JSDOSession class
The most recent session online status determination might be identified
from any of the following:
- A successful result of the
JSDOSessionobject executing itslogin( )method, which sets the property totrue. Prior to callinglogin( )for the first time, the value of this property isfalse. - A successful result of the
JSDOSessionobject executing itslogout( )orinvalidate( )method, which sets the property tofalse. - The
JSDOSessionobject receiving anofflineoronlineevent from its window object. - A JSDO attempting to send a request to an OpenEdge Data Object Service that the
JSDOSessionobject manages. - The result of the
JSDOSessionobject executing itsping( )method.
See also:
login( ) method (JSDOSession class), offline event, online event, ping( ) method (JSDOSession class)