Class DateRangeInputBuilder
InputType.DATERANGEUSERENTRY
.-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class AbstractInputBuilder
AbstractInputBuilder.InputWidth
-
Field Summary
Fields inherited from class AbstractInputBuilder
builderContext, cp
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
DateRangeInputBuilder
(InputBuilderContext builderContext, String paramName) -
Method Summary
Modifier and TypeMethodDescriptionprotected Object
Sets the from value of the date range input field.Sets the date picker format with a predefined valueSet to value of the date range input field.Methods inherited from class AbstractInputBuilder
addOrUpdateInput, addToConfiguratorEntry, addToConfiguratorEntry, buildContextParameter, buildMap, getInput, self, setAccessCode, setAlign, setAllValueTypesTracking, setAlwaysEditable, setAppearance, setAutoComplete, setAutoFocus, setCaption, setConfigValues, setCustomAttributeName, setCustomAttributeValue, setDefaultValueTracking, setDefaultWidth, setDisabled, setDisplayMode, setErrorMessage, setExportable, setFirstRunTracking, setFlex, setHelpLink, setHelpText, setIcon, setIconPosition, setImportable, setLabel, setLabelPlacement, setLabelStyle, setLabelTranslations, setLayoutGridName, setLogActivity, setNoRefresh, setParameterGroup, setPlaceholderText, setPreviousValueTracking, setReadOnly, setRequired, setShowInline, setSize, setStoreAuditTrail, setSuccessMessage, setTab, setTheme, setTitle, setTrackedValue, setUserGroupEdit, setUserGroupEdit, setUserGroupView, setUserGroupView, setValue, setValueChangeTracking, setValueHint, setWarningMessage, setWidth
-
Constructor Details
-
DateRangeInputBuilder
-
-
Method Details
-
setFrom
Sets the from value of the date range input field.Minimum date to be selected from the
DateRangeUserEntry
dropdown.Accepts only
String
s in format 'YYYY-MM-DD', if other providedInputBuilderExceptions.InvalidDateException
is thrown.If date from value is after to the
InputBuilderExceptions.InvalidDateException
is thrown.Example:
api.inputBuilderFactory() .createDateRangeUserEntry('dateRange') .setFrom('2019-10-01') // date before 2019-10-01 will not be available to select .setTo('2019-11-01') // date after 2019-11-01 will not be available to select .buildContextParameter()
- Parameters:
from
- Date from / minimum, as aString
- Returns:
DateRangeInputBuilder
with the updatedPriceFxInterface.FIELD_CONTEXTPARAM_CONFIG_FROM
- See Also:
-
setTo
Set to value of the date range input field.Maximum date to be selected from the
DateRangeUserEntry
dropdown.Accepts only
String
s in format 'YYYY-MM-DD', if other providedInputBuilderExceptions.InvalidDateException
is thrown.If date to value is before from the
InputBuilderExceptions.InvalidDateException
is thrown.Example:
api.inputBuilderFactory() .createDateRangeUserEntry('dateRange') .setFrom('2019-10-01') // date before 2019-10-01 will not be available to select .setTo('2019-11-01') // date after 2019-11-01 will not be available to select .buildContextParameter()
- Parameters:
to
- Date to / maximum, as aString
- Returns:
DateRangeInputBuilder
with the updatedPriceFxInterface.FIELD_CONTEXTPARAM_CONFIG_TO
- See Also:
-
setPickerFormat
Sets the date picker format with a predefined valueNOTE:
- DateRangeInputBuilder.Period import is needed to properly recognize the enum value as the method's argument
- ifnull
is passed, the period is not configured and will not work.
Example:
import net.pricefx.formulaengine.scripting.inputbuilder.DateRangeInputBuilder.Period if (api.isInputGenerationExecution()) { return api.inputBuilderFactory() .createDateRangeUserEntry('dateRangePicker') .setPickerFormat(Period.MONTH) .getInput() } return input.dateRangePicker
- Parameters:
period
-DateRangeInputBuilder.Period
to be used in the picker, available values are:- Returns:
DateRangeInputBuilder
with the updatedPriceFxInterface.FIELD_CONTEXTPARAM_PICKER_PERIOD
- Since:
- 14.0 - Caribou Lou
- See Also:
-
_getInput
- Specified by:
_getInput
in classAbstractInputBuilder<DateRangeInputBuilder,
String[]>
-