NEWS
VIS View Wechsel Befehl - Formatierung
-
Hallo,
beim Kommando zum Viewechsel
setState('vis.0.control.command', {val: {instance: "FFFFFFFF", command: 'changeView', data: 'Home'}, ack: false});
bekomme ich seit ein paar Wochen diesen bekannten Fehler:```
[33mwarn[39m: javascript.0 Wrong type of vis.0.control.command: "object". Please fix, while deprecated and will not work in next versions.[/code]
So geht's auch nicht ohne Fehler:`~~[code]~~setState('vis.0.control.command', {instance: 'FFFFFFFF', command: 'changeView', data: 'Home'});
// oder
setState('vis.0.control.command', {'instance': 'FFFFFFFF', 'command': 'changeView', 'data': 'Home'});
// oder[/code]`
Wie muss ich das Kommando korrigieren?
:!: Auch hier kann ich mir nach einigem Probieren wieder selbst die Antwort geben:
~~[code]~~ setState('vis.0.control.instance', 'FFFFFFFF'); setState('vis.0.control.data', 'Home'); setState('vis.0.control.command', 'changeView');[/code]
GrußPix
-
Hallo Pix,
ich grabe den Thread mal aus…
Ich habe Probleme damit.
Bei mit hat das Objekt "vis.0" kein "control"
Geschweige denn "control.instance" etc.
Ich habe nur vis.0.command und "main" sowie "total" im Unterordner "Datapoints".
Muss ich noch etwas nachinstallieren?
Im Log steht auszugsweise folgendes:
warn State "vis.0.control.command" not found warn State "vis.0.control.data" not found warn State "vis.0.control.instance" not found
Danke für die Hilfe!
David
-
Bei mir geht das so:
setState("vis.0.control.command", '{"instance": "FFFFFFFF", "data": "Security", "command": "changeView"}');