You can change the following global variables in AfterAppInit event. Changes made to these variables will affect the behavior of all tables and pages.
1. Enable SQL debugging. When set to true, all SQL queries that the page runs are printed on the page.
$dDebug = false;
GlobalVars.dDebug = false;
2. Set max length of filter display value. Applies to Field Filters shown in column headers on the List page.
$fieldFilterMaxDisplayValueLength = 50;
GlobalVars.fieldFilterMaxDisplayValueLength = 50;
3. Max number of filter entries. Applies to Field Filters shown in column headers on the List page.
Max number of values shown in the filter popup.
$fieldFilterMaxValuesCount = 3000;
GlobalVars.fieldFilterMaxValuesCount = 3000;
4. Permissions refresh interval in seconds. When dynamic permissions are in use, application uses this value to avoid reading permissions data from the database too often
$gPermissionsRefreshTime = 5;
GlobalVars.gPermissionsRefreshTime = 5;
5. Max field value length in the audit log. When Audit Log feature is in use, this value is used to limit amount of data written to the log
$auditMaxFieldLength = 300;
GlobalVars.auditMaxFieldLength = 300;
6. Set this variable to true to turn Cross-Site Request Forgery protection off. In some unusual website configurations CSRF protection may break Add/Edit page functionality. Only use this variable for debugging.
$csrfProtectionOff = false;
GlobalVars.csrfProtectionOff = false;
7. This option helps browsers cache uploaded images stored on disk or in the database.
$cacheImages = true;
GlobalVars.cacheImages = true;
8. When the Resize Image option is turned on, image resizing happens in the browser before uploading.
$resizeImagesOnClient = true;
GlobalVars.resizeImagesOnClient = true;
9. When List page is loaded a number of Search Panel controls is created immediately. Decreasing this value may make List page load faster, but there will be slight delays when using Search Panel.
$gLoadSearchControls = 30;
GlobalVars.gLoadSearchControls = 30;
10. Applies to the Lookup wizard - 'Text box with AJAX search' controls only. When set to false, the user's input is matched against any substring in the value. I.e. to find Virginia you can enter 'irgi', not only 'Virg'.
$ajaxSearchStartsWith = true;
GlobalVars.ajaxSearchStartsWith = true;
11. Applies to the Lookup wizard - 'Text box with AJAX search controls' only. When set to false, database collation is used to match entered values against those stored in the database. When set to true, case-insensitive search is forced.
$ajaxSearchCaseInsensitive = false;
GlobalVars.ajaxSearchCaseInsensitive = false;
12. Applies to Search Suggest in the Simple (all fields) Search only. When set to true, the user's input is matched against any substring in the value. I.e. to find Virginia you can enter 'irgi', not only 'Virg'.
$suggestAllContent = true;
GlobalVars.suggestAllContent = true;
13. Used with 'Show Copy Link' option only. Limits the max number of characters to be copied to clipboard when the Copy button is clicked.
$hiddenTextSize = 300;
GlobalVars.hiddenTextSize = 300;
14. Number of seconds for 'Remember this machine' to remember the two-factor verification. 30 days by default
$twoFactorRememberMachine = 30 * 1440 * 60;
GlobalVars.twoFactorRememberMachine = 30 * 1440 * 60;
15. Change session identification token on Login. This is recommended for security purposes.
$regenerateSessionOnLogin = true;
See also:
•Localizing PHPRunner applications
•Save user data in session variables