Class DateRangeInputBuilder
Builder class for input type DateRangeUserEntry
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
ConstructorsModifierConstructorDescriptionprotectedDateRangeInputBuilder(InputBuilderContext builderContext, String paramName) -
Method Summary
Modifier and TypeMethodDescriptionprotected ObjectSets the from value of the date range input field.Sets the date picker format with predefined value
NOTE:
- DateRangeInputBuilder.Period import is needed to properly recognise the enum value as the method's argument
- ifnullis passed, the period is not configured and will not work.
Example:Set 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
DateRangeUserEntrydropdownAccepts only
Strings in format 'YYYY-MM-DD', if other providedInputBuilderExceptions.InvalidDateExceptionis thrown.If date from value is after to the
InputBuilderExceptions.InvalidDateExceptionis thrownExample:
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:
DateRangeInputBuilderwith 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
DateRangeUserEntrydropdown.Accepts only
Strings in format 'YYYY-MM-DD', if other providedInputBuilderExceptions.InvalidDateExceptionis thrown.If date to value is before from the
InputBuilderExceptions.InvalidDateExceptionis thrownExample:
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:
DateRangeInputBuilderwith the updatedPriceFxInterface.FIELD_CONTEXTPARAM_CONFIG_TO- See Also:
-
setPickerFormat
Sets the date picker format with predefined value
NOTE:
- DateRangeInputBuilder.Period import is needed to properly recognise the enum value as the method's argument
- ifnullis 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.Periodto be used in the picker, available values are:- Returns:
DateRangeInputBuilderwith the updatedPriceFxInterface.FIELD_CONTEXTPARAM_PICKER_PERIOD- Since:
- 14.0 - Caribou Lou
- See Also:
-
_getInput
- Specified by:
_getInputin classAbstractInputBuilder<DateRangeInputBuilder,String[]>
-