Child pages
  • UICONSTANTS

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Divcache
HTML Table
id
classservoy sSummary
Colgroup Tag
Col
width80px
Col
Table Head (thead)
Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan2
Constants Summary
Table Row (tr)
Table Cell (td)
String
Table Cell (td)COMBOBOX_SHOW_POPUP_ON_FOCUS_GAIN
styleindexdisplay:none

DO NOT EDIT THE CONTENT OF THIS PAGE DIRECTLY (EXCEPT INSIDE THE DIV BELOW WITH ID=DESCRIPTION), UNLESS YOU KNOW WHAT YOU'RE DOING.
THE STRUCTURE OF THE CONTENT IS VITAL IN BEING ABLE TO AUTO UPDATE THE CONTENT THROUGH THE DOC GENERATOR.

Div
iddescription
 
true
refresh100d
showRefreshtrue
iddoc
titleRefresh page
showDatetrue
retryEnable

servoy sReturnTypes2100%height: 30px;2Supported ClientssWordListSmartClientsWordListWebClientsWordListNGClient

Table Row (tr)
Table Cell (td)
String
Table Cell (td)DATE_FORMATTERS_LENIENT
servoy sSummary12%30%58%height: 30px;3Constants SummaryProperty that can be set using element.Property that can be set using application.Property that can be set using application.Property that can be set using application.Property that can be set using application.Property that can be set on editable html area using element.Property that can be set using application.Property that can be set using application.Property that can be set using application.Property that can be set using application.Property that can be set using application.Property that can be set using application. Table Row (tr)
Table Cell (td)
String
Table Cell (td)DATE_FORMATTERS_ROLL_INSTEAD_OF_ADD
Property that can be set using application. Table Row (tr)
Table Cell (td)
String
Table Cell (td)LEAVE_FIELDS_READONLY_IN_FIND_MODE
Table Row (tr)
Table Cell (td)
String
Table Cell (td)TABLEVIEW_WC_DEFAULT_SCROLLABLE
Property that can be set using application.Property that can be set using application. Table Row (tr)
Table Cell (td)
String
Table Cell (td)TABLEVIEW_WC_SCROLLABLE_KEEP_LOADED_ROWS
Table Row (tr)
Table Cell (td)
String
Table Cell (td)TOOLTIP_DISMISS_DELAY
Property that can be set using application.TOOLTIP_INITIAL_DELAY
Property that can be set using application. Table Row (tr)
Table Cell (td)
String
Table Cell (td)Property that can be set using application. Table Row (tr)
Table Cell (td)
String
Table Cell (td)TYPE_AHEAD_SHOW_POPUP_ON_FOCUS_GAIN
Property that can be set using application.

Table Row (tr)

Table Cell (td)
String
Table Cell (td)TYPE_AHEAD_SHOW_POPUP_WHEN_EMPTY

constantservoy sDetail2100%height:30px2Constants DetailsALLOW_JAVASCRIPT_LINK_INPUTname

ALLOW_JAVASCRIPT_LINK_INPUT

dessIndentProperty that can be set using application. Table Row (tr)
Table Cell (td)
String
Table Cell (td)USE_SYSTEM_PRINT_DIALOG
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: falseret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow 
COMBOBOX_ENABLE_FILTERname

COMBOBOX_ENABLE_FILTER

dessIndentProperty 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.ret

table

Returns

id
Colgroup Tag
Col
colspan2
width100%
Col
Table Head (thead)
Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan2
Constants Details
Table Body (tbody)idsIndentclients

constantclassservoy sDetail

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow 
COMBOBOX_SHOW_POPUP_ON_FOCUS_GAIN
Table Row (tr)idname

Table Cell (td)id

COMBOBOX_SHOW_POPUP_ON_FOCUS_GAIN

Table Row (tr)des Table Cell (td) DivclasssIndentProperty 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.
Table Row (tr)id DEFAULT: true.tdret

Returns

divsIndentclients

classid

Supported Clients

sIndent
String Table Row (tr)SmartClient,WebClient,NGClientsam

Table Cell (td)

Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)id

Sample

Div
classsIndent
Code Block
languagejavascript
// 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);
sIdentjavascriptlastDetailRow DATE_FORMATTERS_LENIENT Table Row (tr)idname

Table Cell (td)

DATE_FORMATTERS_LENIENT

Table Row (tr)idclass

des Table Cell (td) DivsIndentProperty 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).
Table Row (tr)id DEFAULT: true.ret

Table Cell (td)

Returns

divsIndentclients

classid

Supported Clients

sIndent
String Table Row (tr)SmartClient,WebClient,NGClientsam

Table Cell (td)

Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)id

Sample

Div
classsIndent
Code Block
languagejavascript
// 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);
Table Row (tr)idsIdentjavascriptlastDetailRow DATE_FORMATTERS_ROLL_INSTEAD_OF_ADDtdnameid

DATE_FORMATTERS_ROLL_INSTEAD_OF_ADD

Table Row (tr)classdes Table Cell (td) DivsIndentProperty 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)
Table Row (tr)id DEFAULT: false.tdret

Returns

divsIndentclients

classid

Supported Clients

sIndent
String Table Row (tr)SmartClient,WebClient,NGClientsam

Table Cell (td)

Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)id

Sample

Div
classsIndent
Code Block
languagejavascript
// 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);
Table Row (tr)idsIdentjavascriptlastDetailRow HTML_EDITOR_CONFIGURATIONname

HTML_EDITOR_CONFIGURATION

dessIndentProperty 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.ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow 
LEAVE_FIELDS_READONLY_IN_FIND_MODE
tdname

LEAVE_FIELDS_READONLY_IN_FIND_MODE

Table Row (tr)idclass

des Table Cell (td) DivsIndentProperty 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: falseret

tr

Returns

idsIndentclients

ret

Table Cell (td)

Returns

Div
classsIndent
String
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
application.putClientProperty(APP_UI_PROPERTY.LEAVE_FIELDS_READONLY_IN_FIND_MODE, true)
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)id Table Row (tr)id

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow 
NG_BLOCK_DUPLICATE_EVENTSname

NG_BLOCK_DUPLICATE_EVENTS

dessIndentProperty 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: falseret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow 
TABLEVIEW_NG_OPTIMIZED_READONLY_MODEname

TABLEVIEW_NG_OPTIMIZED_READONLY_MODE

dessIndentProperty 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: falseret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow 
TABLEVIEW_NG_PAGE_SIZE_FACTORname

TABLEVIEW_NG_PAGE_SIZE_FACTOR

dessIndentProperty 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: 2ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow 
TABLEVIEW_WC_DEFAULT_SCROLLABLE
tdname

TABLEVIEW_WC_DEFAULT_SCROLLABLE

Table Row (tr)id Divclass

des Table Cell (td)sIndentProperty 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
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
String
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
application.putClientProperty(APP_UI_PROPERTY.TABLEVIEW_WC_DEFAULT_SCROLLABLE, true)
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)id Table Row (tr)idDEFAULT: 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.ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow 
TABLEVIEW_WC_SCROLLABLE_KEEP_LOADED_ROWS
name

Table Cell (td)

TABLEVIEW_WC_SCROLLABLE_KEEP_LOADED_ROWS

Table Row (tr)id Divclass

des Table Cell (td)sIndentProperty 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
Table Row (tr)id DEFAULT: falseret

Table Cell (td)

Returns

divsIndentclients

classtd

Supported Clients

sIndent
String Table Row (tr)
idsam
SmartClient,WebClient,NGClientsam

Sample

Div
classsIndent
Code Block
languagejavascript
application.putClientProperty(APP_UI_PROPERTY.sIdentjavascriptlastDetailRow TABLEVIEW_WC_USE_KEY_NAVIGATIONname

TABLEVIEW_WC_

SCROLLABLE

USE_

KEEP_LOADED_ROWS, true)
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)id

KEY_NAVIGATION

dessIndentProperty 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: trueret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow 
TOOLTIP_DISMISS_DELAY
Table Row (tr)idtdnameid

TOOLTIP_DISMISS_DELAY

Table Row (tr)classdes Table Cell (td) DivsIndentProperty that can be set using application.putClientProperty() and
Table Row (tr)id indicates the delay in milliseconds after the tooltip is dismissed.ret

Table Cell (td)

Returns

divsIndentclients

classtd

Supported Clients

sIndent
String Table Row (tr)
idsam
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)idSmartClient,WebClient,NGClientsam

Sample

Div
classsIndent
Code Block
languagejavascript
application.putClientProperty(APP_UI_PROPERTY.TOOLTIP_DISMISS_DELAY, 4000)
sIdentjavascriptlastDetailRow TOOLTIP_INITIAL_DELAY Table Row (tr)idname

Table Cell (td)

TOOLTIP_INITIAL_DELAY

Table Row (tr)idclass

des Table Cell (td) DivsIndentProperty that can be set using application.putClientProperty() and
Table Row (tr)id indicates the delay in milliseconds before the tooltip is shown.ret

Table Cell (td)

Returns

divsIndentclients

classtd

Supported Clients

sIndent
String Table Row (tr)
idsam
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)idSmartClient,WebClient,NGClientsam

Sample

Div
classsIndent
Code Block
languagejavascript
application.putClientProperty(APP_UI_PROPERTY.TOOLTIP_INITIAL_DELAY, 2000)
Table Row (tr)idsIdentjavascriptlastDetailRow TYPE_AHEAD_SHOW_POPUP_ON_FOCUS_GAINname

Table Cell (td)

TYPE_AHEAD_SHOW_POPUP_ON_FOCUS_GAIN

Table Row (tr)idclass

des Table Cell (td) DivsIndentProperty 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.
Table Row (tr)id DEFAULT: true.ret

Table Cell (td)

Returns

divsIndentclients

classid

Supported Clients

sIndent
String Table Row (tr)SmartClient,WebClient,NGClientsam

Table Cell (td)

Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)id

Sample

Div
classsIndent
Code Block
languagejavascript
// 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);
Table Row (tr)idsIdentjavascriptlastDetailRow TYPE_AHEAD_SHOW_POPUP_WHEN_EMPTYname

Table Cell (td)id

TYPE_AHEAD_SHOW_POPUP_WHEN_EMPTY

Table Row (tr)classdes Table Cell (td) DivsIndentProperty 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.
Table Row (tr)id DEFAULT: true.tdret

Returns

divsIndentclients

classtd

Supported Clients

sIndent
String Table Row (tr)
idsam
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)idSmartClient,WebClient,NGClientsam

Sample

Div
classsIndent
Code Block
languagejavascript
// 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);
Table Row (tr)idsIdentjavascriptlastDetailRow USE_SYSTEM_PRINT_DIALOGtdname

USE_SYSTEM_PRINT_DIALOG

Table Row (tr)idclass

des Table Cell (td) DivsIndentProperty 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.
Table Row (tr)id DEFAULT: falsetdret

Returns

divsIndentclients

classid

Supported Clients

sIndent
String Table Row (tr)SmartClient,WebClient,NGClientsam

Table Cell (td) Table Row (tr)

classlastDetailRow
Table Cell (td) 

Sample

Div
classsIndent
Code Block
languagejavascript
application.putClientProperty(APP_UI_PROPERTY.USE_SYSTEM_PRINT_DIALOG, true)
sIdentjavascriptlastDetailRow VALUELIST_MAX_ROWSname

VALUELIST_MAX_ROWS

dessIndentProperty 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: 500ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow