ioBroker.admin icon indicating copy to clipboard operation
ioBroker.admin copied to clipboard

Admin 6: jsonConfig - linkeddevices: editing existing linked object -> input fields are not filled

Open Scrounger opened this issue 3 years ago • 4 comments

Describe the bug
Editing a still existing linked object dont show input in for _prefixId and _stateId.

To Reproduce
take a look on the attached animated gif image, this shows the behaviour

jsonCustomBug_2

Expected behavior
input field should be field from linkedId property

Screenshots & Logfiles
If applicable, add screenshots and logfiles to help explain your problem.

Versions:

  • Adapter version: 6.2.17
  • JS-Controller version: 4.0.23
  • Node version: 16.17.0
  • Operating system: ubuntu

Additional context
https://github.com/Scrounger/ioBroker.linkeddevices/issues/84

I dont know if this is a bug from Admin 6 site or a problem of my jsonCustom file. https://github.com/Scrounger/ioBroker.linkeddevices/blob/master/admin/jsonCustom.json

Scrounger avatar Aug 24 '22 11:08 Scrounger

I have tested it.

grafik

_stateId is not taken from data.linkedId, it takes the last part of the object id.

                "_stateId": {
                    "type": "autocompleteSendTo",
                    "label": "id of linked object",
                    "sm": 4,
                    "noMultiEdit": true,
                    "freeSolo": true,
                    "noTranslation": true,
                    "command": "suggestions_stateId",
                    "maxLength": 255,
                    "defaultFunc": {
                        "func": "(data.linkedId || '').split('.').pop()",
                        "alsoDependsOn": [
                            "linkedId"
                        ]
                    },
                    "validator": "data._stateId && data._stateId.length > 0 && !(/[*?\"'`´,;:<>#/{}ß\\[\\]\\s]/).test(data._stateId)",
                    "help": "${data._stateId && data._stateId.length > 0 && !(/[*?\"'`´,;:<>#/{}ß\\[\\]\\s]/).test(data._stateId) ? '' : 'please enter a valid id, the following chars are not allowed \\'*?\"\\'`´,;:<>#/{}ß[] \\''}"
                },

Scrounger avatar Aug 24 '22 15:08 Scrounger

Fixed image

GermanBluefox avatar Aug 29 '22 17:08 GermanBluefox

i tested 6.2.21. Unfortunately, it still does not work. Now also the '_prefixId' in the input field does not work anymore.

grafik

Scrounger avatar Sep 06 '22 08:09 Scrounger

Please use https://github.com/Scrounger/ioBroker.linkeddevices/pull/85

GermanBluefox avatar Sep 06 '22 14:09 GermanBluefox

So no longer admin bug and will be fixed in adapter @GermanBluefox?

foxriver76 avatar Jul 14 '23 19:07 foxriver76