Min/Max Validation for Process Parameters is not implemented

Description

It seems the min/max validation for process parameters is not implemented at all.

Maybe we can consider hiding those fields until implemented.

The minimum implementation must cover the same as AD_Column (DisplayLogic and numbers)

Also it would be interesting to add support for dates (see )

Environment

None

Activity

zuhri utama 
December 28, 2023 at 11:30 PM

hi

i used the comparation based on validation on column that already implemented min max validation.

compare string is used for reference except date or number. if the reference is not date or numeric, it will compare as string.

Hiep Lq 
December 28, 2023 at 9:00 PM

any reason for compare string?

Hiep Lq 
December 28, 2023 at 8:57 PM

ProcessParameterPanel.validate(Object value, String valueMin, String valueMax, boolean isMandatory, int fieldType)

fail for case:
value = 4
valueMin = 2
valueMax = 30
fieldType = 11

Reason
String compare of valueMax.compareTo(value.toString()) < 0
mean "4" > "30"

Carlos Ruiz 
December 12, 2023 at 10:10 AM

- it is best for usability to report all errors

Hiep Lq 
December 12, 2023 at 4:00 AM

moment implement report at first error, does it better to validate for all parameter and report all fields error?

Fixed

Details

Assignee

Reporter

Fix versions

Priority

Created November 30, 2021 at 10:57 AM
Updated March 1, 2024 at 4:25 PM
Resolved January 4, 2024 at 3:16 PM