Child pages
  • NGCONSTANTS
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

Refresh page Apr 19, 2024 15:31

Supported 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

Returns

Supported Clients

NGClient

Sample

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.

Returns

Supported Clients

NGClient

Sample

// 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);

  • No labels