IMPROVED

Unified editor for parameter type listcount with multiple values

Values are added by the + button in the table header, every row has its own value select, amount field and delete button.

Validation of the saved form is unified with the treecount editor: a row without a selected value reports No value chosen, a row without an amount reports No quantity defined. A zero quantity is saved now instead of being rejected. After removing all the values a parameter with a non-empty defaultValues configuration is pre-filled with the default values and zero quantities again on the next edit. The saving code is common for both modes, therefore these two behaviour changes are visible in the single value mode too, though its editor looks exactly as before.

A non-numeric amount is stored as zero by the saving code. The quantity field of the multiple values editor filters now not only typing, but a pasted content as well, exactly as the treecount one does. In the single value mode only typing is filtered, therefore a value pasted there, for instance 12,50 with a comma, is still able to reach the saving code and to be stored as zero.

p15215 listcount editor mult