Skip to content

JSON API SysVar.createEnum will always be internal #119

@pmdevelopment

Description

@pmdevelopment

To reproduce create a system variable using SysVar.createEnum, expected parameters are "name", "valList", "internal" and "chnID".

For internal, the tcl (createenum.tcl) documents that an integer value is to be passed. I tried 0, 1, 2 and false (you never now), in all cases the api would not return any sort of error, but never would create a visible variable.

As requested for the other issues some payloads. SysVar.createEnum:

"{"name":"Public","valList":"Foo;Bar;Other","internal":"0","chnID":"-1"}

Response is successful:

{"version": "1.1","result": {'name':'Public','id':'6972','value':'A;B;C' },"error": null}

SysVar.getAll will show the variable as internal, the WebUI will not show it:

{
 "id":"6972",
 "name":"Public",
 "type":"LIST",
 "unit":"",
 "value":"0",
 "channelId":"65535",
 "valueList":"A;B;C",
 "isLogged":false,
 "isVisible":true,
  "isInternal":true
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions