Page History
Wiki Markup | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Cache | ||||||||||||||
| ||||||||||||||
CUSTOM_VALUESConstant to set the valueListType of a JSValueList.
Sets the value list to use a custom list of values.
Also used in solutionModel.newValueList(...) to create new valuelists Returns Supported Clients Sample DATABASE_VALUESConstant to set the valueListType of a JSValueList.
Sets the value list to use values loaded from a database.
Also used in solutionModel.newValueList(...) to create new valuelists Returns Supported Clients Sample EMPTY_VALUE_ALWAYSConstant to set/get the addEmptyValue property of a JSValueList. Returns Supported Clients Sample EMPTY_VALUE_NEVERConstant to set/get the addEmptyValue property of a JSValueList. Returns Supported Clients Sample addEmptyValueProperty that tells if an empty value must be shown next to the items in the value list. Returns Supported Clients Sample customValuesA string with the elements in the valuelist. The elements
can be separated by linefeeds (custom1
custom2), optional with realvalues ((custom1|1
custom2|2)). Returns Supported Clients Sample dataSourceCompact representation of the names of the server and table that
are used for loading the data from the database. Returns Supported Clients Sample displayValueTypeReturns Supported Clients Sample fallbackValueListGets or sets the fallback valuelist. Returns Supported Clients Sample globalMethodThe global method of the valuelist is called to fill in or adjust the values of the valuelist.
The method returns a dataset with one or two columns, first column is the display value, second column is real value(if present).
The valuelist will be filled in with the dataset data. If second column is not present real value and display value will be the same.
The method has to handle three different scenarios:
1. 'displayValue' parameter is not null, this parameter should be used to filter the list of values(in a typeahead fashion)
2. 'realValue' parameter is specified, that means value was not found in current list, so must be specified manually.
In this case method should return only one row in the dataset, with the missing value, that will be added to the valuelist
3. 'realValue' and 'displayValue' are both null , in this case the complete list of values should be returned.
Scenario 1 and 3 will completely replace any older results in the valuelist while scenario 2 will append results.
In find mode the record will be the FindRecord which is just like a normal JSRecord (DataRecord) it has the same properties (column/dataproviders) but doesnt have its methods (like isEditing())
The last argument is rawDisplayValue which contains the same text as displayValue but without converting it to lowercase. Returns Supported Clients Sample lazyLoadingA property special for NGClient and GlobalValuelist to only query the global valuelist when it is needed.
This flag has to be set both on valuelist and in component spec, on the valuelist property.
IMPORTANT: Usage of real & display values is not fully supported with lazy loading. Don't set lazy load if your method returns both real and display values
This is because very likely we do need directly the display value for the given real to dispaly its value.. Returns Supported Clients Sample nameThe name of the value list.
It is relevant when the "useTableFilter" property is set. Returns Supported Clients Sample realValueTypeReturns Supported Clients Sample relationNameThe name of the relation that is used for loading data from the database. Returns Supported Clients Sample separatorA String representing the separator that should be used when multiple
display dataproviders are set, when the value list has the type set to
database values. Returns Supported Clients Sample serverNameThe name of the database server that is used for loading the values when
the value list has the type set to database/table values. Returns Supported Clients Sample setFallbackValueListSupported Clients Sample sortOptionsSort options that are applied when the valuelist loads its data
from the database. Returns Supported Clients Sample tableNameThe name of the database table that is used for loading the values when
the value list has the type set to database/table values. Returns Supported Clients Sample useTableFilterFlag that tells if the name of the valuelist should be applied as a filter on the
'valuelist_name' column when retrieving the data from the database. Returns Supported Clients Sample valueListTypeThe type of the valuelist. Can be either custom values or database values. Returns Supported Clients Sample getDisplayDataProviderIds()Returns an array of the dataproviders that will be used to display the valuelist value. Returns Supported Clients Sample getReturnDataProviderIds()Returns an array of the dataproviders that will be used to define the valuelist value that is saved. Returns Supported Clients Sample getUUID()Returns the UUID of the value list Returns Supported Clients Sample setDisplayDataProviderIds()Set the display dataproviders. There can be at most 3 of them, combined with the return dataproviders.
The values taken from these dataproviders, in order, separated by the separator, will be displayed
by the valuelist. Supported Clients Sample setDisplayDataProviderIds(dataprovider1)Set the display dataproviders. There can be at most 3 of them, combined with the return dataproviders.
The values taken from these dataproviders, in order, separated by the separator, will be displayed
by the valuelist. Parameters Supported Clients Sample setDisplayDataProviderIds(dataprovider1, dataprovider2)Set the display dataproviders. There can be at most 3 of them, combined with the return dataproviders.
The values taken from these dataproviders, in order, separated by the separator, will be displayed
by the valuelist. Parameters Supported Clients Sample setDisplayDataProviderIds(dataprovider1, dataprovider2, dataprovider3)Set the display dataproviders. There can be at most 3 of them, combined with the return dataproviders.
The values taken from these dataproviders, in order, separated by the separator, will be displayed
by the valuelist. Parameters Supported Clients Sample setReturnDataProviderIds()Set the return dataproviders. There can be at most 3 of them, combined with the display dataproviders.
The values taken from these dataproviders, in order, separated by the separator, will be returned
by the valuelist. Supported Clients Sample setReturnDataProviderIds(dataprovider1)Set the return dataproviders. There can be at most 3 of them, combined with the display dataproviders.
The values taken from these dataproviders, in order, separated by the separator, will be returned
by the valuelist. Parameters Supported Clients Sample setReturnDataProviderIds(dataprovider1, dataprovider2)Set the return dataproviders. There can be at most 3 of them, combined with the display dataproviders.
The values taken from these dataproviders, in order, separated by the separator, will be returned
by the valuelist. Parameters Supported Clients Sample setReturnDataProviderIds(dataprovider1, dataprovider2, dataprovider3)Set the return dataproviders. There can be at most 3 of them, combined with the display dataproviders.
The values taken from these dataproviders, in order, separated by the separator, will be returned
by the valuelist. Parameters Supported Clients Sample |