ioBroker.admin
ioBroker.admin copied to clipboard
[bug]: [JSONCONFIG] Attribute "uniqueColumns" problems in tables
No existing issues.
- [X] There is no existing issue for my problem.
Describe the bug
If you use the attribute "Attribute "uniqueColumns" in a table and want to monitor several attributes, only the last one is used. "uniqueColumns" : ["name", "name2", "name3"] -> Invalid duplicate entry "" in column "name3" Only "name3" is therefore monitored
To Reproduce
"table_1": { "type": "table", "sm": 12, "md": 12, "lg": 12, "uniqueColumns": [ "name1","name2","name3" ], "items": [ { "type": "checkbox", "label": "active", "attr": "active", "width": "5%", "default": true, "newLine": true }, { "type": "text", "label": "name1", "attr": "name1" }, { "type": "text", "label": "name2", "attr": "name2" }, { "type": "text", "label": "name3", "attr": "name3" }, ] }
Expected behavior
Please check and adapt so that several lines can be monitored reliably without having to execute complex functions in the validator
Screenshots & Logfiles
Adapter version
6.13.15
js-controller version
5.0.17
Node version
18.19.0
Operating system
ubuntu 22.04
Additional context
No response
Which adapter is this to reproduce? And if you fix your inputs in column name 3, will it then show the errors in name2? If I remember correctly I decided to implement to show only one error at a time, as you else can end up with an unbounded amount of error messages.
@foxriver76
I no longer have it in the adapter. It just failed when I was testing it.
No, when name3 is fixed, saving is enabled. It looks like it really only takes the last value in the check