May 02, 2024 21:46 Returns Supported Clients Sample Returns Supported Clients SampleSupported Clients
NGClient
Constants Summary
String
FORM_BASED_BROWSER_HISTORY
By default the NGClient appends the name of the current main form to the url in the address bar of the browser using a fragment identifier (#.
String
WINDOW_TIMEOUT
When the user navigates to another page, closes the browser or is disconnected from the server, the client-session on the server
will be kept for a limited time.
Constants Details
FORM_BASED_BROWSER_HISTORY
By default the NGClient appends the name of the current main form to the url in the address bar of the browser using a fragment identifier (#....)
<p>
By setting the FORM_BASED_BROWSER_HISTORY property to false, this is disabled
The value can be true/false
DEFAULT: true
application.putClientProperty(APP_NG_PROPERTY.FORM_BASED_BROWSER_HISTORY, false);
WINDOW_TIMEOUT
When the user navigates to another page, closes the browser or is disconnected from the server, the client-session on the server
will be kept for a limited time. If the user returns within that time the client session is continued.
<p>
This time can be configured at the server (60 seconds by default) and can overridden for the current ng-client session using
application.putClientProperty with APP_NG_PROPERTY.WINDOW_TIMEOUT.
<p>
The value is specified in seconds.
// allow the user to return within 1 hour before the session is cleaned up
application.putClientProperty(APP_NG_PROPERTY.WINDOW_TIMEOUT, 3600);
// get the current active timeout value, when not overriden via putClientProperty this will return the system value.
var timeout = application.getClientProperty(APP_NG_PROPERTY.WINDOW_TIMEOUT);
// reset the value to the system value.
application.putClientProperty(APP_NG_PROPERTY.WINDOW_TIMEOUT, null);