ALLOW_JAVASCRIPT_LINK_INPUT |
|
Property that can be set using element.putClientProperty()
If set to true, the element will accept javascript links in the input
If set to false, all 'javascript:' texts will be removed from the input
The value can be true/false
DEFAULT: false |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample element.putClientProperty(APP_UI_PROPERTY.ALLOW_JAVASCRIPT_LINK_INPUT, true) |
|
|
|
|
CALENDAR_NG_SHOW_ISO_WEEK_NUMBER |
|
Property that can be set using application.putClientProperty().
If set to true, the default calendar will show week number according to ISO 8601. By default (false) will show week number according to locale.
The value can be true/false
DEFAULT: false |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample application.putClientProperty(APP_UI_PROPERTY.CALENDAR_NG_SHOW_ISO_WEEK_NUMBER, true) |
|
|
|
|
Property that can be set using application.putClientProperty(). It is used only in NGClient.
This is a global setting, it will affect all COMBOBOX fields. It must be set as soon as possible, ie. on solution open.
Value can be true/false/null.
If set to false, ALL COMBOBOXes will hide the search box when gaining focus.
DEFAULT: null. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample // make all COMBOBOX fields hide the search box when gaining focus
application.putClientProperty(APP_UI_PROPERTY.COMBOBOX_ENABLE_FILTER, false); |
|
|
|
|
COMBOBOX_SHOW_POPUP_ON_FOCUS_GAIN |
|
Property that can be set using application.putClientProperty() or element.putClientProperty(). It is used only in Smart Client.
If set on application it will affect all COMBOBOX fields. If set on an element it will affect only that COMBOBOX element/field (with priority over the application property).
Value can be true/false/null.
If set to true, the affected COMBOBOX will show the pop-up when gaining focus.
DEFAULT: true. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample // make all COMBOBOX fields not show the pop-up when gaining focus
application.putClientProperty(APP_UI_PROPERTY.COMBOBOX_SHOW_POPUP_ON_FOCUS_GAIN, false);
// make one COMBOBOX field show the pop-up when gaining focus - overrides the application property set
forms.someForm.elements.comboboxElement.putClientProperty(APP_UI_PROPERTY.COMBOBOX_SHOW_POPUP_ON_FOCUS_GAIN, true); |
|
|
|
|
Property that can be set using application.putClientProperty() or element.putClientProperty().
If set on application it will affect all date formatted fields. CAUTION: this property must be set on application before the fields are created (for example in solution onOpen handler). Changing it after fields were created will not affect these existing fields.
If set on an element it will affect only that date formatted element/field (with priority over the application property).
Value can be true/false/null.
If set to false, date formatted fields will not allow input of out-of-bounds values (like 62 minutes means 2 minutes and +1 hour).
DEFAULT: true. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample // make all date formatted fields (created after this line is executed) not use lenient mode
application.putClientProperty(APP_UI_PROPERTY.DATE_FORMATTERS_LENIENT, false);
// make one date formatted field use lenient mode - overrides the application property set
forms.someForm.elements.typeAheadElement.putClientProperty(APP_UI_PROPERTY.DATE_FORMATTERS_LENIENT, true); |
|
|
|
|
DATE_FORMATTERS_ROLL_INSTEAD_OF_ADD |
|
Property that can be set using application.putClientProperty() or element.putClientProperty(). It is used only in Smart Client.
If set on application it will affect all date formatted fields. If set on an element it will affect only that date formatted element/field (with priority over the application property).
Value can be true/false/null.
If set to true, only selected part of the date will be affected when using up/down keys to cycle through values. (for example, pressing up when cursor is on minutes and minutes shows 59 will not result in hour change)
DEFAULT: false. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample // make all date formatted fields use roll instead of add
application.putClientProperty(APP_UI_PROPERTY.DATE_FORMATTERS_ROLL_INSTEAD_OF_ADD, true);
// make one date formatted field use add instead of roll - overrides the application property set
forms.someForm.elements.typeAheadElement.putClientProperty(APP_UI_PROPERTY.DATE_FORMATTERS_ROLL_INSTEAD_OF_ADD, false); |
|
|
|
|
HTML_EDITOR_CONFIGURATION |
|
Property that can be set on editable html area using element.putClientProperty()
The value must be a valid json string according to TinyMCE editor configuration (http://www.tinymce.com/wiki.php/configuration).
It will be used to override/set configuration properties in order to customize the editor. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample // adding a new TinyMCE plugin (same for skin or theme)
// this code assumes plugin.min.js was copied in web server at specified path
// NOTE: we use external plugin, not plugin, in order for file to be accessible from web server; for this example, pluging.min.js file must be copied under ServoyInstall/application_server/server/webapps/ROOT/tinymce/plugins/link
element.putClientProperty(APP_UI_PROPERTY.HTML_EDITOR_CONFIGURATION, '{"external_plugins": { "link": "../../../tinymce/plugins/link/plugin.min.js"}}')
// change the editor configuration (add menubar, status bar and change toolbar)
element.putClientProperty(APP_UI_PROPERTY.HTML_EDITOR_CONFIGURATION, '{"menubar": "tools table format view insert edit", "statusbar" : true, "toolbar": "undo redo | styleselect | bold italic"}') |
|
|
|
|
LEAVE_FIELDS_READONLY_IN_FIND_MODE |
|
Property that can be set using application.putClientProperty().
If set to true, fields that are read-only won't be editable in find mode
If set to false, fields that are read-only will be editable in find mode
The value can be true/false
DEFAULT: false |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample application.putClientProperty(APP_UI_PROPERTY.LEAVE_FIELDS_READONLY_IN_FIND_MODE, true) |
|
|
|
|
NG_BLOCK_DUPLICATE_EVENTS |
|
Property that can be set using application.putClientProperty() or element.putClientProperty()..
If set to true, any events of same type and on same component will be blocked (cancelled) until first event is finished.
The value can be true/false
DEFAULT: false |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample application.putClientProperty(APP_UI_PROPERTY.NG_BLOCK_DUPLICATE_EVENTS, true) |
|
|
|
|
RELATED_NULL_SEARCH_ADD_PK_CONDITION |
|
Property that can be set using element.putClientProperty()
If set to true, related find/search will only return records that have a related match, also in case of left outer joins.
Otherwise a related search on a field may return records where the related search does not match.
For example,
* <pre>
if (foundset.find()) {
founset.myleftouterjoinrelation.myfield = 'someval';
foundset.search();
}
</pre>
With this setting to false records of the foundset table that have no related records via the relation will also be returned.
The value can be true/false
DEFAULT: servoy property servoy.client.relatedNullSearchAddPkCondition/true |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample application.putClientProperty(APP_UI_PROPERTY.RELATED_NULL_SEARCH_ADD_PK_CONDITION, false) |
|
|
|
|
TABLEVIEW_NG_OPTIMIZED_READONLY_MODE |
|
Property that can be set using application.putClientProperty().
If set to true, the tableview will be seens as fully readonly and NGClient will generate an optimized version (textfields are replaced)
The value can be true/false
DEFAULT: false |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample application.putClientProperty(APP_UI_PROPERTY.TABLEVIEW_NG_OPTIMIZED_READONLY_MODE, true) |
|
|
|
|
TABLEVIEW_NG_PAGE_SIZE_FACTOR |
|
Property that can be set using application.putClientProperty().
A number that defines the factor of what the next page size should be is in the tableview/listview/portal,
this value is used to get the initial size (numerOfVisibleRows * thisPageSize).
So a value of 2 (default) will load in 20 records if the number of visible rows is 10.
Then if you scroll down the new set of records will be: (numberOfVisibleRows * thisPageSize) - numerOfVisibleRows
so that will load for the default value 2, 1 page which is the number of visible rows (10 in this example).
The value can be any number but it should be bigger then 1.
WARNING the bigger the number, the more data is pushed initially to the client (and more is pushed in every new page)
DEFAULT: 2 |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample application.putClientProperty(APP_UI_PROPERTY.TABLEVIEW_NG_PAGE_SIZE_FACTOR, 3) |
|
|
|
|
TABLEVIEW_WC_DEFAULT_SCROLLABLE |
|
Property that can be set using application.putClientProperty().
If set to true, table views in web client are scrollable by default
If set to false, table views in web client are not scrollable, but pageable by default
The value can be true/false
DEFAULT: false
When this property is set to true, you can control the size of the page by setting the servoy property "servoy.webclient.scrolling.tableview.multiplier".
The default value is 2. Setting the property to a higher value, will result in more data to be queried at once. You can also set it to a lower value, like 1 or 1.5 for example.
We strongly recommend that the default or lower size be used in order to avoid blocking situations due to the big request being made to the server. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample application.putClientProperty(APP_UI_PROPERTY.TABLEVIEW_WC_DEFAULT_SCROLLABLE, true) |
|
|
|
|
TABLEVIEW_WC_SCROLLABLE_KEEP_LOADED_ROWS |
|
Property that can be set using application.putClientProperty().
If set to true, scrollable table views in web client will keep the already loaded rows in the view
If set to false, scrollable table views in web client will unload not visible rows in the view
The value can be true/false
DEFAULT: false |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample application.putClientProperty(APP_UI_PROPERTY.TABLEVIEW_WC_SCROLLABLE_KEEP_LOADED_ROWS, true) |
|
|
|
|
TABLEVIEW_WC_USE_KEY_NAVIGATION |
|
Property that can be set using application.putClientProperty().
If set to true, you can change selection in webclient tableview using up/down keys
If set to false, you cannot change selection via keyboard arrows
The value can be true/false
DEFAULT: true |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample application.putClientProperty(APP_UI_PROPERTY.TABLEVIEW_WC_USE_KEY_NAVIGATION, false) |
|
|
|
|
Property that can be set using application.putClientProperty() and
indicates the delay in milliseconds after the tooltip is dismissed. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample application.putClientProperty(APP_UI_PROPERTY.TOOLTIP_DISMISS_DELAY, 4000) |
|
|
|
|
Property that can be set using application.putClientProperty() and
indicates the delay in milliseconds before the tooltip is shown. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample application.putClientProperty(APP_UI_PROPERTY.TOOLTIP_INITIAL_DELAY, 2000) |
|
|
|
|
Property that can be set using element.putClientProperty() or application.putClientProperty()
If set to true, data showed on elements like buttons or labels will not be sanitized.
Showing unsanitized data can make the system vulnerable to XSS attacks, for example, an
user registers with name 'John Doe<script>someEvilJavascript</script>', when this data is shown in a label (by another user)
the javascript in the script tags will be executed.
Only enable this setting if the data shown can always be trusted and is never composed of data from an external system or user.
The value can be true/false
DEFAULT: false |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample element.putClientProperty(APP_UI_PROPERTY.TRUST_DATA_AS_HTML, true) |
|
|
|
|
TYPE_AHEAD_SHOW_POPUP_ON_FOCUS_GAIN |
|
Property that can be set using application.putClientProperty() or element.putClientProperty().
If set on application it will affect all TYPE-AHEAD fields. If set on an element it will affect only that TYPE-AHEAD element/field (with priority over the application property).
Value can be true/false/null.
If set to true, the affected TYPE_AHEAD(s) will show the pop-up when gaining focus.
DEFAULT: true. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample // make all TYPE-AHEAD fields not show the pop-up when gaining focus
application.putClientProperty(APP_UI_PROPERTY.TYPE_AHEAD_SHOW_POPUP_ON_FOCUS_GAIN, false);
// make one TYPE-AHEAD field show the pop-up when gaining focus - overrides the application property set
forms.someForm.elements.typeAheadElement.putClientProperty(APP_UI_PROPERTY.TYPE_AHEAD_SHOW_POPUP_ON_FOCUS_GAIN, true); |
|
|
|
|
TYPE_AHEAD_SHOW_POPUP_WHEN_EMPTY |
|
Property that can be set using application.putClientProperty() or element.putClientProperty().
If set on application it will affect all TYPE-AHEAD fields. If set on an element it will affect only that TYPE-AHEAD element/field (with priority over the application property).
Value can be true/false/null.
If set to true, the affected TYPE_AHEAD(s) will show the pop-up when the field content is empty.
DEFAULT: true. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample // make all TYPE-AHEAD fields not show the pop-up when there is empty content in the field
application.putClientProperty(APP_UI_PROPERTY.TYPE_AHEAD_SHOW_POPUP_WHEN_EMPTY, false);
// make one TYPE-AHEAD field show the pop-up when there is empty content in the field - overrides the application property set
forms.someForm.elements.typeAheadElement.putClientProperty(APP_UI_PROPERTY.TYPE_AHEAD_SHOW_POPUP_WHEN_EMPTY, true); |
|
|
|
|
Property that can be set using application.putClientProperty().
If set to true, the system standard Printing dialog will be used when printing is needed.
If set to false, the Servoy Printing dialog will be used.
The value can be true/false/null.
DEFAULT: false |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample application.putClientProperty(APP_UI_PROPERTY.USE_SYSTEM_PRINT_DIALOG, true) |
|
|
|
|
Property that can be set using application.putClientProperty()
The value can be a positive integer representing the maximum number of rows that will be retrieved by query in database or related valuelist.
Can have a maximum value of 1000.
DEFAULT: 500 |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample application.putClientProperty(APP_UI_PROPERTY.VALUELIST_MAX_ROWS, 1000) |
|
|
|
|
|