Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Scrounger opened this issue Aug 24, 2022 · 5 comments
Assignees
Labels
bug json config Issues with JsonConfig components. question

Comments

@Scrounger
Copy link

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
Scrounger/ioBroker.linkeddevices#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

GermanBluefox added a commit that referenced this issue Aug 24, 2022
@Scrounger
Copy link
Author

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 \\'*?\"\\'`´,;:<>#/{}ß[] \\''}"
                },

@GermanBluefox
Copy link
Contributor

Fixed
image

@Scrounger
Copy link
Author

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

grafik

@GermanBluefox
Copy link
Contributor

Please use Scrounger/ioBroker.linkeddevices#85

@foxriver76
Copy link
Collaborator

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

@foxriver76 foxriver76 added the json config Issues with JsonConfig components. label Aug 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug json config Issues with JsonConfig components. question
Projects
None yet
Development

No branches or pull requests

4 participants