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 | Type |
---|---|
param |
|
abstractPopupFilter.clearParams()
Clear the params
abstractPopupFilter.createPopUp(callback) ⇒ plugins.window.FormPopup
plugins.window.FormPopup
Creates and returns the popupFilter
Param | Type | Description |
---|---|---|
callback |
| 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)
Param | Type | Description |
---|---|---|
[x] |
| |
[y] |
| |
[width] |
| The width of the pop-up. Optional. Default is component width |
[height] |
| The height of the pop-up. Optional. Default is form height. |
[jsWindowType] |
| 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
Param | Type |
---|---|
index |
|
abstractPopupFilter.restoreState(jsonState) ⇒ AbstractPopupFilter
AbstractPopupFilter
Param | Type |
---|---|
jsonState |
|
abstractPopupFilter.setDataProvider(dataProvider)
Sets the popupFilter dataprovider
Param | Type |
---|---|
dataProvider |
|
abstractPopupFilter.setOperator(operator)
Param | Type | Description |
---|---|---|
operator |
| a value from scopes.svyPopupFilter.OPERATOR |
abstractPopupFilter.setRendererForm(popupFilterForm)
Param | Type |
---|---|
popupFilterForm | RuntimeForm. | |
abstractPopupFilter.setText(text)
Sets the popupFilter text
Param | Type |
---|---|
text |
|
abstractPopupFilter.setValues(values)
Param | Type |
---|---|
values |
|
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
Param | Type | Description |
---|---|---|
[callback] |
| The function that will be called when a selection is made; the callback returns the following arguments: {Array} record, {Array<String |
[x] |
| |
[y] |
| |
[width] |
| The width of the popupFilter. Optional. Default is same as target component |
[height] |
| The height of the popupFilter. Optional. Default is implementation-specifc. |
abstractPopupFilter.showPopUp(callback, target, [width], [height])
Shows the popupFilter
Param | Type | Description |
---|---|---|
callback |
| The function that will be called when a selection is made; the callback returns the following arguments: {Array} record, {Array<String |
target |
| The component to show relative to |
[width] |
| The width of the popupFilter. Optional. Default is same as target component |
[height] |
| 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
Param | Type | Description |
---|---|---|
win |
| the JSWindow object to show |
[callback] |
| 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 | Type |
---|---|
param |
|
svyCheckFilter.clearParams()
Clear the params
svyCheckFilter.createPopUp(callback) ⇒ plugins.window.FormPopup
plugins.window.FormPopup
Creates and returns the popupFilter
Param | Type | Description |
---|---|---|
callback |
| 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)
Param | Type | Description |
---|---|---|
[x] |
| |
[y] |
| |
[width] |
| The width of the pop-up. Optional. Default is component width |
[height] |
| The height of the pop-up. Optional. Default is form height. |
[jsWindowType] |
| 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
Param | Type |
---|---|
index |
|
svyCheckFilter.restoreState(jsonState) ⇒ AbstractPopupFilter
AbstractPopupFilter
Param | Type |
---|---|
jsonState |
|
svyCheckFilter.setDataProvider(dataProvider)
Sets the popupFilter dataprovider
Param | Type |
---|---|
dataProvider |
|
svyCheckFilter.setOperator(operator)
Param | Type | Description |
---|---|---|
operator |
| a value from scopes.svyPopupFilter.OPERATOR |
svyCheckFilter.setRendererForm(popupFilterForm)
Param | Type |
---|---|
popupFilterForm |
|
svyCheckFilter.setText(text)
Sets the popupFilter text
Param | Type |
---|---|
text |
|
svyCheckFilter.setValues(values)
Param | Type |
---|---|
values |
|
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
Param | Type | Description |
---|---|---|
[callback] |
| The function that will be called when a selection is made; the callback returns the following arguments: {Array} record, {Array<String |
[x] |
| |
[y] |
| |
[width] |
| The width of the popupFilter. Optional. Default is same as target component |
[height] |
| The height of the popupFilter. Optional. Default is implementation-specifc. |
svyCheckFilter.showPopUp(callback, target, [width], [height])
Shows the popupFilter
Param | Type | Description |
---|---|---|
callback |
| The function that will be called when a selection is made; the callback returns the following arguments: {Array} record, {Array<String |
target |
| The component to show relative to |
[width] |
| The width of the popupFilter. Optional. Default is same as target component |
[height] |
| 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
Param | Type | Description |
---|---|---|
win |
| the JSWindow object to show |
[callback] |
| 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 | Type |
---|---|
param |
|
svyDateFilter.clearParams()
Clear the params
svyDateFilter.createPopUp(callback) ⇒ plugins.window.FormPopup
plugins.window.FormPopup
Creates and returns the popupFilter
Param | Type | Description |
---|---|---|
callback |
| 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)
Param | Type | Description |
---|---|---|
[x] |
| |
[y] |
| |
[width] |
| The width of the pop-up. Optional. Default is component width |
[height] |
| The height of the pop-up. Optional. Default is form height. |
[jsWindowType] |
| 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
Param | Type |
---|---|
index |
|
svyDateFilter.restoreState(jsonState) ⇒ AbstractPopupFilter
AbstractPopupFilter
Param | Type |
---|---|
jsonState |
|
svyDateFilter.setDataProvider(dataProvider)
Sets the popupFilter dataprovider
Param | Type |
---|---|
dataProvider |
|
svyDateFilter.setOperator(operator)
Param | Type | Description |
---|---|---|
operator |
| a value from scopes.svyPopupFilter.OPERATOR |
svyDateFilter.setRendererForm(popupFilterForm)
Param | Type |
---|---|
popupFilterForm |
|
svyDateFilter.setText(text)
Sets the popupFilter text
Param | Type |
---|---|
text |
|
svyDateFilter.setValues(values)
Param | Type |
---|---|
values |
|
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
Param | Type | Description |
---|---|---|
[callback] |
| The function that will be called when a selection is made; the callback returns the following arguments: {Array} record, {Array<String |
[x] |
| |
[y] |
| |
[width] |
| The width of the popupFilter. Optional. Default is same as target component |
[height] |
| The height of the popupFilter. Optional. Default is implementation-specifc. |
svyDateFilter.showPopUp(callback, target, [width], [height])
Shows the popupFilter
Param | Type | Description |
---|---|---|
callback |
| The function that will be called when a selection is made; the callback returns the following arguments: {Array} record, {Array<String |
target |
| The component to show relative to |
[width] |
| The width of the popupFilter. Optional. Default is same as target component |
[height] |
| 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
Param | Type | Description |
---|---|---|
win |
| the JSWindow object to show |
[callback] |
| 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 | Type |
---|---|
param |
|
svyIntegerFilter.clearParams()
Clear the params
svyIntegerFilter.createPopUp(callback) ⇒ plugins.window.FormPopup
plugins.window.FormPopup
Creates and returns the popupFilter
Param | Type | Description |
---|---|---|
callback |
| 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)
Param | Type | Description |
---|---|---|
[x] |
| |
[y] |
| |
[width] |
| The width of the pop-up. Optional. Default is component width |
[height] |
| The height of the pop-up. Optional. Default is form height. |
[jsWindowType] |
| 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
Param | Type |
---|---|
index |
|
svyIntegerFilter.restoreState(jsonState) ⇒ AbstractPopupFilter
AbstractPopupFilter
Param | Type |
---|---|
jsonState |
|
svyIntegerFilter.setDataProvider(dataProvider)
Sets the popupFilter dataprovider
Param | Type |
---|---|
dataProvider |
|
svyIntegerFilter.setOperator(operator)
Param | Type | Description |
---|---|---|
operator |
| a value from scopes.svyPopupFilter.OPERATOR |
svyIntegerFilter.setRendererForm(popupFilterForm)
Param | Type |
---|---|
popupFilterForm |
|
svyIntegerFilter.setText(text)
Sets the popupFilter text
Param | Type |
---|---|
text |
|
svyIntegerFilter.setValues(values)
Param | Type |
---|---|
values |
|
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
Param | Type | Description |
---|---|---|
[callback] |
| The function that will be called when a selection is made; the callback returns the following arguments: {Array} record, {Array<String |
[x] |
| |
[y] |
| |
[width] |
| The width of the popupFilter. Optional. Default is same as target component |
[height] |
| The height of the popupFilter. Optional. Default is implementation-specifc. |
svyIntegerFilter.showPopUp(callback, target, [width], [height])
Shows the popupFilter
Param | Type | Description |
---|---|---|
callback |
| The function that will be called when a selection is made; the callback returns the following arguments: {Array} record, {Array<String |
target |
| The component to show relative to |
[width] |
| The width of the popupFilter. Optional. Default is same as target component |
[height] |
| 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
Param | Type | Description |
---|---|---|
win |
| the JSWindow object to show |
[callback] |
| 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 | Type |
---|---|
param |
|
svyNumberFilter.clearParams()
Clear the params
svyNumberFilter.createPopUp(callback) ⇒ plugins.window.FormPopup
plugins.window.FormPopup
Creates and returns the popupFilter
Param | Type | Description |
---|---|---|
callback |
| 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)
Param | Type | Description |
---|---|---|
[x] |
| |
[y] |
| |
[width] |
| The width of the pop-up. Optional. Default is component width |
[height] |
| The height of the pop-up. Optional. Default is form height. |
[jsWindowType] |
| 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
Param | Type |
---|---|
index |
|
svyNumberFilter.restoreState(jsonState) ⇒ AbstractPopupFilter
AbstractPopupFilter
Param | Type |
---|---|
jsonState |
|
svyNumberFilter.setDataProvider(dataProvider)
Sets the popupFilter dataprovider
Param | Type |
---|---|
dataProvider |
|
svyNumberFilter.setOperator(operator)
Param | Type | Description |
---|---|---|
operator |
| a value from scopes.svyPopupFilter.OPERATOR |
svyNumberFilter.setRendererForm(popupFilterForm)
Param | Type |
---|---|
popupFilterForm |
|
svyNumberFilter.setText(text)
Sets the popupFilter text
Param | Type |
---|---|
text |
|
svyNumberFilter.setValues(values)
Param | Type |
---|---|
values |
|
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
Param | Type | Description |
---|---|---|
[callback] |
| The function that will be called when a selection is made; the callback returns the following arguments: {Array} record, {Array<String |
[x] |
| |
[y] |
| |
[width] |
| The width of the popupFilter. Optional. Default is same as target component |
[height] |
| The height of the popupFilter. Optional. Default is implementation-specifc. |
svyNumberFilter.showPopUp(callback, target, [width], [height])
Shows the popupFilter
Param | Type | Description |
---|---|---|
callback |
| The function that will be called when a selection is made; the callback returns the following arguments: {Array} record, {Array<String |
target |
| The component to show relative to |
[width] |
| The width of the popupFilter. Optional. Default is same as target component |
[height] |
| 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
Param | Type | Description |
---|---|---|
win |
| the JSWindow object to show |
[callback] |
| 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 | Type |
---|---|
param |
|
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)
Param | Type | Description |
---|---|---|
[x] |
| |
[y] |
| |
[width] |
| The width of the pop-up. Optional. Default is component width |
[height] |
| The height of the pop-up. Optional. Default is form height. |
[jsWindowType] |
| 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
Param | Type |
---|---|
index |
|
svySelectFilter.restoreState(jsonState) ⇒ AbstractPopupFilter
AbstractPopupFilter
Overrides: restoreState
Param | Type |
---|---|
jsonState |
|
svySelectFilter.setDataProvider(dataProvider)
Sets the popupFilter dataprovider
Param | Type |
---|---|
dataProvider |
|
svySelectFilter.setOperator(operator)
Param | Type | Description |
---|---|---|
operator |
| a value from scopes.svyPopupFilter.OPERATOR |
svySelectFilter.setRendererForm(popupFilterForm)
Param | Type |
---|---|
popupFilterForm |
|
svySelectFilter.setText(text)
Sets the popupFilter text
Param | Type |
---|---|
text |
|
svySelectFilter.setValues(values)
Overrides: setValues
Param | Type |
---|---|
values |
|
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
Param | Type | Description |
---|---|---|
[callback] |
| The function that will be called when a selection is made; the callback returns the following arguments: {Array} record, {Array<String |
[x] |
| |
[y] |
| |
[width] |
| The width of the popupFilter. Optional. Default is same as target component |
[height] |
| The height of the popupFilter. Optional. Default is implementation-specifc. |
svySelectFilter.showPopUp(callback, target, [width], [height])
Shows the popupFilter
Overrides: showPopUp
Param | Type | Description |
---|---|---|
callback |
| The function that will be called when a selection is made; the callback returns the following arguments: {Array} record, {Array<String |
target |
| The component to show relative to |
[width] |
| The width of the popupFilter. Optional. Default is same as target component |
[height] |
| 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
Param | Type | Description |
---|---|---|
win |
| the JSWindow object to show |
[callback] |
| The function that will be called when a selection is made; the callback returns the following arguments: {Array<String |
new SvySelectFilter(dataProvider, lookup)
Param | Type | Description |
---|---|---|
dataProvider |
| will override the lookupDataProvider |
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 | Type |
---|---|
param |
|
svyTokenFilter.clearParams()
Clear the params
svyTokenFilter.createPopUp(callback) ⇒ plugins.window.FormPopup
plugins.window.FormPopup
Creates and returns the popupFilter
Param | Type | Description |
---|---|---|
callback |
| 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)
Param | Type | Description |
---|---|---|
[x] |
| |
[y] |
| |
[width] |
| The width of the pop-up. Optional. Default is component width |
[height] |
| The height of the pop-up. Optional. Default is form height. |
[jsWindowType] |
| 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
Param | Type |
---|---|
index |
|
svyTokenFilter.restoreState(jsonState) ⇒ AbstractPopupFilter
AbstractPopupFilter
Param | Type |
---|---|
jsonState |
|
svyTokenFilter.setDataProvider(dataProvider)
Sets the popupFilter dataprovider
Param | Type |
---|---|
dataProvider |
|
svyTokenFilter.setOperator(operator)
Param | Type | Description |
---|---|---|
operator |
| a value from scopes.svyPopupFilter.OPERATOR |
svyTokenFilter.setRendererForm(popupFilterForm)
Param | Type |
---|---|
popupFilterForm |
|
svyTokenFilter.setText(text)
Sets the popupFilter text
Param | Type |
---|---|
text |
|
svyTokenFilter.setValues(values)
Param | Type |
---|---|
values |
|
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
Param | Type | Description |
---|---|---|
[callback] |
| The function that will be called when a selection is made; the callback returns the following arguments: {Array} record, {Array<String |
[x] |
| |
[y] |
| |
[width] |
| The width of the popupFilter. Optional. Default is same as target component |
[height] |
| The height of the popupFilter. Optional. Default is implementation-specifc. |
svyTokenFilter.showPopUp(callback, target, [width], [height])
Shows the popupFilter
Param | Type | Description |
---|---|---|
callback |
| The function that will be called when a selection is made; the callback returns the following arguments: {Array} record, {Array<String |
target |
| The component to show relative to |
[width] |
| The width of the popupFilter. Optional. Default is same as target component |
[height] |
| 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
Param | Type | Description |
---|---|---|
win |
| the JSWindow object to show |
[callback] |
| The function that will be called when a selection is made; the callback returns the following arguments: {Array} record, {Array<String |
LOCALE
Properties
Name | Default |
---|---|
filterPopupMenu |
|
svyCheckPopupFilter |
|
svyDatePopupFilter |
|
svyTokenPopupFilter |
|
svySelectPopupFilter |
|
svyIntegerPopupFilter |
|
svyNumberPopupFilter |
|
OPERATOR
Properties
Name | Default | Description |
---|---|---|
IS_NULL |
| |
NOT_NULL |
| |
EQUALS |
| |
EQUALS_OR_NULL |
| eq |
LIKE |
| All values starting with search input e.g. LIKE SEARCH_WORD% |
LIKE_CONTAINS |
| All values containing search input e.g. LIKE %SEARCH_WORD% |
GREATER_EQUAL |
| |
GREATER_THEN |
| |
SMALLER_EQUAL |
| |
SMALLER_THEN |
| |
BETWEEN |
| |
IS_IN |
|
STYLING
Properties
Name | Default |
---|---|
MUTLI_SELECT_ICON_COLUMN_WIDTH |
|
MULTI_SELECT_SHOW_TILE_HEADERS |
|
CLOSE_ICON |
|
REMOVE_ICON |
|
EXCLUDE_ICON |
|
INCLUDE_ICON |
|
OPEN_FILTER_ICON |
|
REMOVE_FILTER_ICON |
|
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
Param | Type |
---|---|
formName |
|
formType |
|
createCheckFilter() ⇒ SvyCheckFilter
SvyCheckFilter
createDateFilter() ⇒ SvyDateFilter
SvyDateFilter
createIntegerFilter() ⇒ SvyIntegerFilter
SvyIntegerFilter
createNumberFilter() ⇒ SvyNumberFilter
SvyNumberFilter
createSelectFilter(dataProvider, lookup) ⇒ SvySelectFilter
SvySelectFilter
Param | Type |
---|---|
dataProvider |
|
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