API svyPopupFilter
Classes
SvyCheckFilter ⇐ AbstractPopupFilter
SvyDateFilter ⇐ AbstractPopupFilter
SvyIntegerFilter ⇐ AbstractPopupFilter
SvyNumberFilter ⇐ AbstractPopupFilter
SvySelectFilter ⇐ AbstractPopupFilter
SvyTokenFilter ⇐ AbstractPopupFilter
Functions
applyLocaleStrings(formName, formType)
Applies the locale strings set on svyToolbarFilter.TOOLBAR_LOCALE to the matching elements for the given form identifier which is one of TOOLBAR_LOCALE's main properties
createCheckFilter() ⇒ SvyCheckFilter
createDateFilter() ⇒ SvyDateFilter
createIntegerFilter() ⇒ SvyIntegerFilter
createNumberFilter() ⇒ SvyNumberFilter
createSelectFilter(dataProvider, lookup) ⇒ SvySelectFilte
createTokenFilter() ⇒ SvyTokenFilter
getVersion() ⇒ String
Gets the version of this module
AbstractPopupFilter
.createPopUp(callback) ⇒
plugins.window.FormPopup
.getDataProvider() ⇒
String
.getID() ⇒
String
.getOperator() ⇒
String
.getParams() ⇒
Array
.getState() ⇒
Object
.getText() ⇒
String
.getValues() ⇒
Array
.showModalWindow([callback], [x], [y], [width], [height]) ⇒
Array.<JSRecord>
|Array.<(String|Date|Number)>
.showWindow(win, [callback]) ⇒
[ 'Array' ].<(String|Date|Number)>
abstractPopupFilter.addParam(param)
Add a params to be added into the onSelect callback arguments
param
Object
abstractPopupFilter.clearParams()
Clear the params
abstractPopupFilter.createPopUp(callback) ⇒ plugins.window.FormPopup
plugins.window.FormPopup
Creates and returns the popupFilter
callback
function
The function that will be called when a selection is made; the callback returns the following arguments: {Array} record, {Array<String
abstractPopupFilter.createWindow([x], [y], [width], [height], [jsWindowType]) ⇒ JSWindow
JSWindow
Returns: JSWindow
- returns a JSWindow which can be used to show the popupFilter in it using popupFilter.showWindow(window)
[x]
Number
[y]
Number
[width]
Number
The width of the pop-up. Optional. Default is component width
[height]
Number
The height of the pop-up. Optional. Default is form height.
[jsWindowType]
Number
Type of window; should be an option of JSWindow, Default JSWindow.MODAL_DIALOG
abstractPopupFilter.getDataProvider() ⇒ String
String
Gets the popupFilter dataprovider
abstractPopupFilter.getID() ⇒ String
String
Gets the filter name
abstractPopupFilter.getOperator() ⇒ String
String
abstractPopupFilter.getParams() ⇒ Array
Array
abstractPopupFilter.getState() ⇒ Object
Object
abstractPopupFilter.getText() ⇒ String
String
Gets the popupFilter text
abstractPopupFilter.getValues() ⇒ Array
Array
abstractPopupFilter.removeParam(index)
Removes a param at the specified index
index
Number
abstractPopupFilter.restoreState(jsonState) ⇒ AbstractPopupFilter
AbstractPopupFilter
jsonState
Object
abstractPopupFilter.setDataProvider(dataProvider)
Sets the popupFilter dataprovider
dataProvider
String
abstractPopupFilter.setOperator(operator)
operator
String
a value from scopes.svyPopupFilter.OPERATOR
abstractPopupFilter.setRendererForm(popupFilterForm)
popupFilterForm
RuntimeForm.<AbstractPopupFilter>
| RuntimeForm.<AbstractLookup>
abstractPopupFilter.setText(text)
Sets the popupFilter text
text
String
abstractPopupFilter.setValues(values)
values
Array
abstractPopupFilter.showModalWindow([callback], [x], [y], [width], [height]) ⇒ Array.<JSRecord>
| Array.<(String|Date|Number)>
Array.<JSRecord>
| Array.<(String|Date|Number)>
Shows the popupFilter in a modal Window
Returns: Array.<JSRecord>
| Array.<(String|Date|Number)>
- returns the selected records; if the popupFilterDataprovider has been set instead it returns the popupFilterDataprovider values on the selected records. Returns null if the window is closed without a selection or an empty selection
[callback]
function
The function that will be called when a selection is made; the callback returns the following arguments: {Array} record, {Array<String
[x]
Number
[y]
Number
[width]
Number
The width of the popupFilter. Optional. Default is same as target component
[height]
Number
The height of the popupFilter. Optional. Default is implementation-specifc.
abstractPopupFilter.showPopUp(callback, target, [width], [height])
Shows the popupFilter
callback
function
The function that will be called when a selection is made; the callback returns the following arguments: {Array} record, {Array<String
target
RuntimeComponent
The component to show relative to
[width]
Number
The width of the popupFilter. Optional. Default is same as target component
[height]
Number
The height of the popupFilter. Optional. Default is implementation-specifc.
abstractPopupFilter.showWindow(win, [callback]) ⇒ [ 'Array' ].<(String|Date|Number)>
[ 'Array' ].<(String|Date|Number)>
Shows the popupFilter in a Window
Returns: [ 'Array' ].<(String|Date|Number)>
- returns the selected records; if the popupFilterDataprovider has been set instead it returns the popupFilterDataprovider values on the selected records. Returns null if the window is closed without a selection or an empty selection
win
JSWindow
the JSWindow object to show
[callback]
function
The function that will be called when a selection is made; the callback returns the following arguments: {Array} record, {Array<String
SvyCheckFilter ⇐ AbstractPopupFilter
AbstractPopupFilter
Extends: AbstractPopupFilter
SvyCheckFilter ⇐
AbstractPopupFilter
.createPopUp(callback) ⇒
plugins.window.FormPopup
.getDataProvider() ⇒
String
.getID() ⇒
String
.getOperator() ⇒
String
.getParams() ⇒
Array
.getState() ⇒
Object
.getText() ⇒
String
.getValues() ⇒
Array
.showModalWindow([callback], [x], [y], [width], [height]) ⇒
Array.<JSRecord>
|Array.<(String|Date|Number)>
.showWindow(win, [callback]) ⇒
[ 'Array' ].<(String|Date|Number)>
svyCheckFilter.addParam(param)
Add a params to be added into the onSelect callback arguments
param
Object
svyCheckFilter.clearParams()
Clear the params
svyCheckFilter.createPopUp(callback) ⇒ plugins.window.FormPopup
plugins.window.FormPopup
Creates and returns the popupFilter
callback
function
The function that will be called when a selection is made; the callback returns the following arguments: {Array} record, {Array<String
svyCheckFilter.createWindow([x], [y], [width], [height], [jsWindowType]) ⇒ JSWindow
JSWindow
Returns: JSWindow
- returns a JSWindow which can be used to show the popupFilter in it using popupFilter.showWindow(window)
[x]
Number
[y]
Number
[width]
Number
The width of the pop-up. Optional. Default is component width
[height]
Number
The height of the pop-up. Optional. Default is form height.
[jsWindowType]
Number
Type of window; should be an option of JSWindow, Default JSWindow.MODAL_DIALOG
svyCheckFilter.getDataProvider() ⇒ String
String
Gets the popupFilter dataprovider
svyCheckFilter.getID() ⇒ String
String
Gets the filter name
svyCheckFilter.getOperator() ⇒ String
String
svyCheckFilter.getParams() ⇒ Array
Array
svyCheckFilter.getState() ⇒ Object
Object
svyCheckFilter.getText() ⇒ String
String
Gets the popupFilter text
svyCheckFilter.getValues() ⇒ Array
Array
svyCheckFilter.removeParam(index)
Removes a param at the specified index
index
Number
svyCheckFilter.restoreState(jsonState) ⇒ AbstractPopupFilter
AbstractPopupFilter
jsonState
Object
svyCheckFilter.setDataProvider(dataProvider)
Sets the popupFilter dataprovider
dataProvider
String
svyCheckFilter.setOperator(operator)
operator
String
a value from scopes.svyPopupFilter.OPERATOR
svyCheckFilter.setRendererForm(popupFilterForm)
popupFilterForm
RuntimeForm.<AbstractPopupFilter>
| RuntimeForm.<AbstractLookup>
svyCheckFilter.setText(text)
Sets the popupFilter text
text
String
svyCheckFilter.setValues(values)
values
Array
svyCheckFilter.showModalWindow([callback], [x], [y], [width], [height]) ⇒ Array.<JSRecord>
| Array.<(String|Date|Number)>
Array.<JSRecord>
| Array.<(String|Date|Number)>
Shows the popupFilter in a modal Window
Returns: Array.<JSRecord>
| Array.<(String|Date|Number)>
- returns the selected records; if the popupFilterDataprovider has been set instead it returns the popupFilterDataprovider values on the selected records. Returns null if the window is closed without a selection or an empty selection
[callback]
function
The function that will be called when a selection is made; the callback returns the following arguments: {Array} record, {Array<String
[x]
Number
[y]
Number
[width]
Number
The width of the popupFilter. Optional. Default is same as target component
[height]
Number
The height of the popupFilter. Optional. Default is implementation-specifc.
svyCheckFilter.showPopUp(callback, target, [width], [height])
Shows the popupFilter
callback
function
The function that will be called when a selection is made; the callback returns the following arguments: {Array} record, {Array<String
target
RuntimeComponent
The component to show relative to
[width]
Number
The width of the popupFilter. Optional. Default is same as target component
[height]
Number
The height of the popupFilter. Optional. Default is implementation-specifc.
svyCheckFilter.showWindow(win, [callback]) ⇒ [ 'Array' ].<(String|Date|Number)>
[ 'Array' ].<(String|Date|Number)>
Shows the popupFilter in a Window
Returns: [ 'Array' ].<(String|Date|Number)>
- returns the selected records; if the popupFilterDataprovider has been set instead it returns the popupFilterDataprovider values on the selected records. Returns null if the window is closed without a selection or an empty selection
win
JSWindow
the JSWindow object to show
[callback]
function
The function that will be called when a selection is made; the callback returns the following arguments: {Array} record, {Array<String
SvyDateFilter ⇐ AbstractPopupFilter
AbstractPopupFilter
Extends: AbstractPopupFilter
SvyDateFilter ⇐
AbstractPopupFilter
.createPopUp(callback) ⇒
plugins.window.FormPopup
.getDataProvider() ⇒
String
.getID() ⇒
String
.getOperator() ⇒
String
.getParams() ⇒
Array
.getState() ⇒
Object
.getText() ⇒
String
.getValues() ⇒
Array
.showModalWindow([callback], [x], [y], [width], [height]) ⇒
Array.<JSRecord>
|Array.<(String|Date|Number)>
.showWindow(win, [callback]) ⇒
[ 'Array' ].<(String|Date|Number)>
svyDateFilter.addParam(param)
Add a params to be added into the onSelect callback arguments
param
Object
svyDateFilter.clearParams()
Clear the params
svyDateFilter.createPopUp(callback) ⇒ plugins.window.FormPopup
plugins.window.FormPopup
Creates and returns the popupFilter
callback
function
The function that will be called when a selection is made; the callback returns the following arguments: {Array} record, {Array<String
svyDateFilter.createWindow([x], [y], [width], [height], [jsWindowType]) ⇒ JSWindow
JSWindow
Returns: JSWindow
- returns a JSWindow which can be used to show the popupFilter in it using popupFilter.showWindow(window)
[x]
Number
[y]
Number
[width]
Number
The width of the pop-up. Optional. Default is component width
[height]
Number
The height of the pop-up. Optional. Default is form height.
[jsWindowType]
Number
Type of window; should be an option of JSWindow, Default JSWindow.MODAL_DIALOG
svyDateFilter.getDataProvider() ⇒ String
String
Gets the popupFilter dataprovider
svyDateFilter.getID() ⇒ String
String
Gets the filter name
svyDateFilter.getOperator() ⇒ String
String
svyDateFilter.getParams() ⇒ Array
Array
svyDateFilter.getState() ⇒ Object
Object
svyDateFilter.getText() ⇒ String
String
Gets the popupFilter text
svyDateFilter.getValues() ⇒ Array
Array
svyDateFilter.removeParam(index)
Removes a param at the specified index
index
Number
svyDateFilter.restoreState(jsonState) ⇒ AbstractPopupFilter
AbstractPopupFilter
jsonState
Object
svyDateFilter.setDataProvider(dataProvider)
Sets the popupFilter dataprovider
dataProvider
String
svyDateFilter.setOperator(operator)
operator
String
a value from scopes.svyPopupFilter.OPERATOR
svyDateFilter.setRendererForm(popupFilterForm)
popupFilterForm
RuntimeForm.<AbstractPopupFilter>
| RuntimeForm.<AbstractLookup>
svyDateFilter.setText(text)
Sets the popupFilter text
text
String
svyDateFilter.setValues(values)
values
Array
svyDateFilter.showModalWindow([callback], [x], [y], [width], [height]) ⇒ Array.<JSRecord>
| Array.<(String|Date|Number)>
Array.<JSRecord>
| Array.<(String|Date|Number)>
Shows the popupFilter in a modal Window
Returns: Array.<JSRecord>
| Array.<(String|Date|Number)>
- returns the selected records; if the popupFilterDataprovider has been set instead it returns the popupFilterDataprovider values on the selected records. Returns null if the window is closed without a selection or an empty selection
[callback]
function
The function that will be called when a selection is made; the callback returns the following arguments: {Array} record, {Array<String
[x]
Number
[y]
Number
[width]
Number
The width of the popupFilter. Optional. Default is same as target component
[height]
Number
The height of the popupFilter. Optional. Default is implementation-specifc.
svyDateFilter.showPopUp(callback, target, [width], [height])
Shows the popupFilter
callback
function
The function that will be called when a selection is made; the callback returns the following arguments: {Array} record, {Array<String
target
RuntimeComponent
The component to show relative to
[width]
Number
The width of the popupFilter. Optional. Default is same as target component
[height]
Number
The height of the popupFilter. Optional. Default is implementation-specifc.
svyDateFilter.showWindow(win, [callback]) ⇒ [ 'Array' ].<(String|Date|Number)>
[ 'Array' ].<(String|Date|Number)>
Shows the popupFilter in a Window
Returns: [ 'Array' ].<(String|Date|Number)>
- returns the selected records; if the popupFilterDataprovider has been set instead it returns the popupFilterDataprovider values on the selected records. Returns null if the window is closed without a selection or an empty selection
win
JSWindow
the JSWindow object to show
[callback]
function
The function that will be called when a selection is made; the callback returns the following arguments: {Array} record, {Array<String
SvyIntegerFilter ⇐ AbstractPopupFilter
AbstractPopupFilter
Extends: AbstractPopupFilter
SvyIntegerFilter ⇐
AbstractPopupFilter
.createPopUp(callback) ⇒
plugins.window.FormPopup
.getDataProvider() ⇒
String
.getID() ⇒
String
.getOperator() ⇒
String
.getParams() ⇒
Array
.getState() ⇒
Object
.getText() ⇒
String
.getValues() ⇒
Array
.showModalWindow([callback], [x], [y], [width], [height]) ⇒
Array.<JSRecord>
|Array.<(String|Date|Number)>
.showWindow(win, [callback]) ⇒
[ 'Array' ].<(String|Date|Number)>
svyIntegerFilter.addParam(param)
Add a params to be added into the onSelect callback arguments
param
Object
svyIntegerFilter.clearParams()
Clear the params
svyIntegerFilter.createPopUp(callback) ⇒ plugins.window.FormPopup
plugins.window.FormPopup
Creates and returns the popupFilter
callback
function
The function that will be called when a selection is made; the callback returns the following arguments: {Array} record, {Array<String
svyIntegerFilter.createWindow([x], [y], [width], [height], [jsWindowType]) ⇒ JSWindow
JSWindow
Returns: JSWindow
- returns a JSWindow which can be used to show the popupFilter in it using popupFilter.showWindow(window)
[x]
Number
[y]
Number
[width]
Number
The width of the pop-up. Optional. Default is component width
[height]
Number
The height of the pop-up. Optional. Default is form height.
[jsWindowType]
Number
Type of window; should be an option of JSWindow, Default JSWindow.MODAL_DIALOG
svyIntegerFilter.getDataProvider() ⇒ String
String
Gets the popupFilter dataprovider
svyIntegerFilter.getID() ⇒ String
String
Gets the filter name
svyIntegerFilter.getOperator() ⇒ String
String
svyIntegerFilter.getParams() ⇒ Array
Array
svyIntegerFilter.getState() ⇒ Object
Object
svyIntegerFilter.getText() ⇒ String
String
Gets the popupFilter text
svyIntegerFilter.getValues() ⇒ Array
Array
svyIntegerFilter.removeParam(index)
Removes a param at the specified index
index
Number
svyIntegerFilter.restoreState(jsonState) ⇒ AbstractPopupFilter
AbstractPopupFilter
jsonState
Object
svyIntegerFilter.setDataProvider(dataProvider)
Sets the popupFilter dataprovider
dataProvider
String
svyIntegerFilter.setOperator(operator)
operator
String
a value from scopes.svyPopupFilter.OPERATOR
svyIntegerFilter.setRendererForm(popupFilterForm)
popupFilterForm
RuntimeForm.<AbstractPopupFilter>
| RuntimeForm.<AbstractLookup>
svyIntegerFilter.setText(text)
Sets the popupFilter text
text
String
svyIntegerFilter.setValues(values)
values
Array
svyIntegerFilter.showModalWindow([callback], [x], [y], [width], [height]) ⇒ Array.<JSRecord>
| Array.<(String|Date|Number)>
Array.<JSRecord>
| Array.<(String|Date|Number)>
Shows the popupFilter in a modal Window
Returns: Array.<JSRecord>
| Array.<(String|Date|Number)>
- returns the selected records; if the popupFilterDataprovider has been set instead it returns the popupFilterDataprovider values on the selected records. Returns null if the window is closed without a selection or an empty selection
[callback]
function
The function that will be called when a selection is made; the callback returns the following arguments: {Array} record, {Array<String
[x]
Number
[y]
Number
[width]
Number
The width of the popupFilter. Optional. Default is same as target component
[height]
Number
The height of the popupFilter. Optional. Default is implementation-specifc.
svyIntegerFilter.showPopUp(callback, target, [width], [height])
Shows the popupFilter
callback
function
The function that will be called when a selection is made; the callback returns the following arguments: {Array} record, {Array<String
target
RuntimeComponent
The component to show relative to
[width]
Number
The width of the popupFilter. Optional. Default is same as target component
[height]
Number
The height of the popupFilter. Optional. Default is implementation-specifc.
svyIntegerFilter.showWindow(win, [callback]) ⇒ [ 'Array' ].<(String|Date|Number)>
[ 'Array' ].<(String|Date|Number)>
Shows the popupFilter in a Window
Returns: [ 'Array' ].<(String|Date|Number)>
- returns the selected records; if the popupFilterDataprovider has been set instead it returns the popupFilterDataprovider values on the selected records. Returns null if the window is closed without a selection or an empty selection
win
JSWindow
the JSWindow object to show
[callback]
function
The function that will be called when a selection is made; the callback returns the following arguments: {Array} record, {Array<String
SvyNumberFilter ⇐ AbstractPopupFilter
AbstractPopupFilter
Extends: AbstractPopupFilter
SvyNumberFilter ⇐
AbstractPopupFilter
.createPopUp(callback) ⇒
plugins.window.FormPopup
.getDataProvider() ⇒
String
.getID() ⇒
String
.getOperator() ⇒
String
.getParams() ⇒
Array
.getState() ⇒
Object
.getText() ⇒
String
.getValues() ⇒
Array
.showModalWindow([callback], [x], [y], [width], [height]) ⇒
Array.<JSRecord>
|Array.<(String|Date|Number)>
.showWindow(win, [callback]) ⇒
[ 'Array' ].<(String|Date|Number)>
svyNumberFilter.addParam(param)
Add a params to be added into the onSelect callback arguments
param
Object
svyNumberFilter.clearParams()
Clear the params
svyNumberFilter.createPopUp(callback) ⇒ plugins.window.FormPopup
plugins.window.FormPopup
Creates and returns the popupFilter
callback
function
The function that will be called when a selection is made; the callback returns the following arguments: {Array} record, {Array<String
svyNumberFilter.createWindow([x], [y], [width], [height], [jsWindowType]) ⇒ JSWindow
JSWindow
Returns: JSWindow
- returns a JSWindow which can be used to show the popupFilter in it using popupFilter.showWindow(window)
[x]
Number
[y]
Number
[width]
Number
The width of the pop-up. Optional. Default is component width
[height]
Number
The height of the pop-up. Optional. Default is form height.
[jsWindowType]
Number
Type of window; should be an option of JSWindow, Default JSWindow.MODAL_DIALOG
svyNumberFilter.getDataProvider() ⇒ String
String
Gets the popupFilter dataprovider
svyNumberFilter.getID() ⇒ String
String
Gets the filter name
svyNumberFilter.getOperator() ⇒ String
String
svyNumberFilter.getParams() ⇒ Array
Array
svyNumberFilter.getState() ⇒ Object
Object
svyNumberFilter.getText() ⇒ String
String
Gets the popupFilter text
svyNumberFilter.getValues() ⇒ Array
Array
svyNumberFilter.removeParam(index)
Removes a param at the specified index
index
Number
svyNumberFilter.restoreState(jsonState) ⇒ AbstractPopupFilter
AbstractPopupFilter
jsonState
Object
svyNumberFilter.setDataProvider(dataProvider)
Sets the popupFilter dataprovider
dataProvider
String
svyNumberFilter.setOperator(operator)
operator
String
a value from scopes.svyPopupFilter.OPERATOR
svyNumberFilter.setRendererForm(popupFilterForm)
popupFilterForm
RuntimeForm.<AbstractPopupFilter>
| RuntimeForm.<AbstractLookup>
svyNumberFilter.setText(text)
Sets the popupFilter text
text
String
svyNumberFilter.setValues(values)
values
Array
svyNumberFilter.showModalWindow([callback], [x], [y], [width], [height]) ⇒ Array.<JSRecord>
| Array.<(String|Date|Number)>
Array.<JSRecord>
| Array.<(String|Date|Number)>
Shows the popupFilter in a modal Window
Returns: Array.<JSRecord>
| Array.<(String|Date|Number)>
- returns the selected records; if the popupFilterDataprovider has been set instead it returns the popupFilterDataprovider values on the selected records. Returns null if the window is closed without a selection or an empty selection
[callback]
function
The function that will be called when a selection is made; the callback returns the following arguments: {Array} record, {Array<String
[x]
Number
[y]
Number
[width]
Number
The width of the popupFilter. Optional. Default is same as target component
[height]
Number
The height of the popupFilter. Optional. Default is implementation-specifc.
svyNumberFilter.showPopUp(callback, target, [width], [height])
Shows the popupFilter
callback
function
The function that will be called when a selection is made; the callback returns the following arguments: {Array} record, {Array<String
target
RuntimeComponent
The component to show relative to
[width]
Number
The width of the popupFilter. Optional. Default is same as target component
[height]
Number
The height of the popupFilter. Optional. Default is implementation-specifc.
svyNumberFilter.showWindow(win, [callback]) ⇒ [ 'Array' ].<(String|Date|Number)>
[ 'Array' ].<(String|Date|Number)>
Shows the popupFilter in a Window
Returns: [ 'Array' ].<(String|Date|Number)>
- returns the selected records; if the popupFilterDataprovider has been set instead it returns the popupFilterDataprovider values on the selected records. Returns null if the window is closed without a selection or an empty selection
win
JSWindow
the JSWindow object to show
[callback]
function
The function that will be called when a selection is made; the callback returns the following arguments: {Array} record, {Array<String
SvySelectFilter ⇐ AbstractPopupFilter
AbstractPopupFilter
Extends: AbstractPopupFilter
SvySelectFilter ⇐
AbstractPopupFilter
.createPopUp(callback) ⇒
plugins.window.FormPopup
.getDataProvider() ⇒
String
.getID() ⇒
String
.getLookup() ⇒
scopes.svyLookup.Lookup
.getOperator() ⇒
String
.getParams() ⇒
Array
.getState() ⇒
Object
.getText() ⇒
String
.getValues() ⇒
Array
.showModalWindow([callback], [x], [y], [width], [height]) ⇒
Array.<JSRecord>
|Array.<(String|Date|Number)>
.showWindow(win, [callback]) ⇒
Array.<JSRecord>
|Array.<(String|Date|Number)>
svySelectFilter.addParam(param)
Add a params to be added into the onSelect callback arguments
param
Object
svySelectFilter.clearParams()
Clear the params
svySelectFilter.createPopUp(callback) ⇒ plugins.window.FormPopup
plugins.window.FormPopup
Creates and returns the popupFilter
Overrides: createPopUp
svySelectFilter.createWindow([x], [y], [width], [height], [jsWindowType]) ⇒ JSWindow
JSWindow
Overrides: createWindow
Returns: JSWindow
- returns a JSWindow which can be used to show the popupFilter in it using popupFilter.showWindow(window)
[x]
Number
[y]
Number
[width]
Number
The width of the pop-up. Optional. Default is component width
[height]
Number
The height of the pop-up. Optional. Default is form height.
[jsWindowType]
Number
Type of window; should be an option of JSWindow, Default JSWindow.MODAL_DIALOG
svySelectFilter.getDataProvider() ⇒ String
String
Gets the popupFilter dataprovider
svySelectFilter.getID() ⇒ String
String
Gets the filter name
svySelectFilter.getLookup() ⇒ scopes.svyLookup.Lookup
scopes.svyLookup.Lookup
svySelectFilter.getOperator() ⇒ String
String
svySelectFilter.getParams() ⇒ Array
Array
svySelectFilter.getState() ⇒ Object
Object
Overrides: getState
svySelectFilter.getText() ⇒ String
String
Gets the popupFilter text
svySelectFilter.getValues() ⇒ Array
Array
svySelectFilter.removeParam(index)
Removes a param at the specified index
index
Number
svySelectFilter.restoreState(jsonState) ⇒ AbstractPopupFilter
AbstractPopupFilter
Overrides: restoreState
jsonState
Object
svySelectFilter.setDataProvider(dataProvider)
Sets the popupFilter dataprovider
dataProvider
String
svySelectFilter.setOperator(operator)
operator
String
a value from scopes.svyPopupFilter.OPERATOR
svySelectFilter.setRendererForm(popupFilterForm)
popupFilterForm
RuntimeForm.<AbstractPopupFilter>
| RuntimeForm.<AbstractLookup>
svySelectFilter.setText(text)
Sets the popupFilter text
text
String
svySelectFilter.setValues(values)
Overrides: setValues
values
Array
svySelectFilter.showModalWindow([callback], [x], [y], [width], [height]) ⇒ Array.<JSRecord>
| Array.<(String|Date|Number)>
Array.<JSRecord>
| Array.<(String|Date|Number)>
Shows the popupFilter in a modal Window
Overrides: showModalWindow
Returns: Array.<JSRecord>
| Array.<(String|Date|Number)>
- returns the selected records; if the popupFilterDataprovider has been set instead it returns the popupFilterDataprovider values on the selected records. Returns null if the window is closed without a selection or an empty selection
[callback]
function
The function that will be called when a selection is made; the callback returns the following arguments: {Array} record, {Array<String
[x]
Number
[y]
Number
[width]
Number
The width of the popupFilter. Optional. Default is same as target component
[height]
Number
The height of the popupFilter. Optional. Default is implementation-specifc.
svySelectFilter.showPopUp(callback, target, [width], [height])
Shows the popupFilter
Overrides: showPopUp
callback
function
The function that will be called when a selection is made; the callback returns the following arguments: {Array} record, {Array<String
target
RuntimeComponent
The component to show relative to
[width]
Number
The width of the popupFilter. Optional. Default is same as target component
[height]
Number
The height of the popupFilter. Optional. Default is implementation-specifc.
svySelectFilter.showWindow(win, [callback]) ⇒ Array.<JSRecord>
| Array.<(String|Date|Number)>
Array.<JSRecord>
| Array.<(String|Date|Number)>
Shows the popupFilter in a Window
Overrides: showWindow
Returns: Array.<JSRecord>
| Array.<(String|Date|Number)>
- returns the selected records; if the popupFilterDataprovider has been set instead it returns the popupFilterDataprovider values on the selected records. Returns null if the window is closed without a selection or an empty selection
win
JSWindow
the JSWindow object to show
[callback]
function
The function that will be called when a selection is made; the callback returns the following arguments: {Array<String
new SvySelectFilter(dataProvider, lookup)
dataProvider
String
will override the lookupDataProvider
lookup
scopes.svyLookup.Lookup
SvyTokenFilter ⇐ AbstractPopupFilter
AbstractPopupFilter
Extends: AbstractPopupFilter
SvyTokenFilter ⇐
AbstractPopupFilter
.createPopUp(callback) ⇒
plugins.window.FormPopup
.getDataProvider() ⇒
String
.getID() ⇒
String
.getOperator() ⇒
String
.getParams() ⇒
Array
.getState() ⇒
Object
.getText() ⇒
String
.getValues() ⇒
Array
.showModalWindow([callback], [x], [y], [width], [height]) ⇒
Array.<JSRecord>
|Array.<(String|Date|Number)>
.showWindow(win, [callback]) ⇒
[ 'Array' ].<(String|Date|Number)>
svyTokenFilter.addParam(param)
Add a params to be added into the onSelect callback arguments
param
Object
svyTokenFilter.clearParams()
Clear the params
svyTokenFilter.createPopUp(callback) ⇒ plugins.window.FormPopup
plugins.window.FormPopup
Creates and returns the popupFilter
callback
function
The function that will be called when a selection is made; the callback returns the following arguments: {Array} record, {Array<String
svyTokenFilter.createWindow([x], [y], [width], [height], [jsWindowType]) ⇒ JSWindow
JSWindow
Returns: JSWindow
- returns a JSWindow which can be used to show the popupFilter in it using popupFilter.showWindow(window)
[x]
Number
[y]
Number
[width]
Number
The width of the pop-up. Optional. Default is component width
[height]
Number
The height of the pop-up. Optional. Default is form height.
[jsWindowType]
Number
Type of window; should be an option of JSWindow, Default JSWindow.MODAL_DIALOG
svyTokenFilter.getDataProvider() ⇒ String
String
Gets the popupFilter dataprovider
svyTokenFilter.getID() ⇒ String
String
Gets the filter name
svyTokenFilter.getOperator() ⇒ String
String
svyTokenFilter.getParams() ⇒ Array
Array
svyTokenFilter.getState() ⇒ Object
Object
svyTokenFilter.getText() ⇒ String
String
Gets the popupFilter text
svyTokenFilter.getValues() ⇒ Array
Array
svyTokenFilter.removeParam(index)
Removes a param at the specified index
index
Number
svyTokenFilter.restoreState(jsonState) ⇒ AbstractPopupFilter
AbstractPopupFilter
jsonState
Object
svyTokenFilter.setDataProvider(dataProvider)
Sets the popupFilter dataprovider
dataProvider
String
svyTokenFilter.setOperator(operator)
operator
String
a value from scopes.svyPopupFilter.OPERATOR
svyTokenFilter.setRendererForm(popupFilterForm)
popupFilterForm
RuntimeForm.<AbstractPopupFilter>
| RuntimeForm.<AbstractLookup>
svyTokenFilter.setText(text)
Sets the popupFilter text
text
String
svyTokenFilter.setValues(values)
values
Array
svyTokenFilter.showModalWindow([callback], [x], [y], [width], [height]) ⇒ Array.<JSRecord>
| Array.<(String|Date|Number)>
Array.<JSRecord>
| Array.<(String|Date|Number)>
Shows the popupFilter in a modal Window
Returns: Array.<JSRecord>
| Array.<(String|Date|Number)>
- returns the selected records; if the popupFilterDataprovider has been set instead it returns the popupFilterDataprovider values on the selected records. Returns null if the window is closed without a selection or an empty selection
[callback]
function
The function that will be called when a selection is made; the callback returns the following arguments: {Array} record, {Array<String
[x]
Number
[y]
Number
[width]
Number
The width of the popupFilter. Optional. Default is same as target component
[height]
Number
The height of the popupFilter. Optional. Default is implementation-specifc.
svyTokenFilter.showPopUp(callback, target, [width], [height])
Shows the popupFilter
callback
function
The function that will be called when a selection is made; the callback returns the following arguments: {Array} record, {Array<String
target
RuntimeComponent
The component to show relative to
[width]
Number
The width of the popupFilter. Optional. Default is same as target component
[height]
Number
The height of the popupFilter. Optional. Default is implementation-specifc.
svyTokenFilter.showWindow(win, [callback]) ⇒ [ 'Array' ].<(String|Date|Number)>
[ 'Array' ].<(String|Date|Number)>
Shows the popupFilter in a Window
Returns: [ 'Array' ].<(String|Date|Number)>
- returns the selected records; if the popupFilterDataprovider has been set instead it returns the popupFilterDataprovider values on the selected records. Returns null if the window is closed without a selection or an empty selection
win
JSWindow
the JSWindow object to show
[callback]
function
The function that will be called when a selection is made; the callback returns the following arguments: {Array} record, {Array<String
LOCALE
Properties
filterPopupMenu
{"addFilter":"Add filter"}
svyCheckPopupFilter
{"labelChecked":"Yes","labelUnchecked":"No"}
svyDatePopupFilter
{"labelTitle":"Date","labelToday":"Today","labelTomorrow":"Tomorrow","labelThisWeek":"This week","labelNextWeek":"Next week","labelThisMonth":"This month","labelNextMonth":"Next month","labelThisYear":"This year","labelLastYear":"Last year","operator":""}
svyTokenPopupFilter
{"searchbox":"","labelRemoveAll":"Remove all"}
svySelectPopupFilter
{"searchText":"","labelSelectAll":"Select all","labelDeselectAll":"Deselect all"}
svyIntegerPopupFilter
{"labelTitle":"Type filter value...","labelEqualTo":"Equal to","labelGreater":"Bigger than","labelSmaller":"Smaller than","labelBetween":"Between"}
svyNumberPopupFilter
{"labelTitle":"Type filter value...","labelEqualTo":"Equal to","labelGreater":"Bigger than","labelSmaller":"Smaller than","labelBetween":"Between"}
OPERATOR
Properties
IS_NULL
isNull
NOT_NULL
!isNull
EQUALS
eq
EQUALS_OR_NULL
^
eq
LIKE
like
All values starting with search input e.g. LIKE SEARCH_WORD%
LIKE_CONTAINS
like_contains
All values containing search input e.g. LIKE %SEARCH_WORD%
GREATER_EQUAL
ge
GREATER_THEN
gt
SMALLER_EQUAL
le
SMALLER_THEN
lt
BETWEEN
BETWEEN
IS_IN
IN
STYLING
Properties
MUTLI_SELECT_ICON_COLUMN_WIDTH
50
MULTI_SELECT_SHOW_TILE_HEADERS
true
CLOSE_ICON
fa fa-close
REMOVE_ICON
fa fa-trash
EXCLUDE_ICON
fas fa-minus-circle
INCLUDE_ICON
fas fa-check-circle
OPEN_FILTER_ICON
fas fa-angle-down
REMOVE_FILTER_ICON
fas fa-times
applyLocaleStrings(formName, formType)
Applies the locale strings set on svyToolbarFilter.TOOLBAR_LOCALE to the matching elements for the given form identifier which is one of TOOLBAR_LOCALE's main properties
formName
String
formType
String
createCheckFilter() ⇒ SvyCheckFilter
SvyCheckFilter
createDateFilter() ⇒ SvyDateFilter
SvyDateFilter
createIntegerFilter() ⇒ SvyIntegerFilter
SvyIntegerFilter
createNumberFilter() ⇒ SvyNumberFilter
SvyNumberFilter
createSelectFilter(dataProvider, lookup) ⇒ SvySelectFilter
SvySelectFilter
dataProvider
String
lookup
scopes.svyLookup.Lookup
createTokenFilter() ⇒ SvyTokenFilter
SvyTokenFilter
getVersion() ⇒ String
String
Gets the version of this module
Returns: String
- the version of the module using the format Major.Minor.Revision
Last updated