FORUM CTRLX AUTOMATION
ctrlX World Partner Apps for ctrlX AUTOMATION
Dear Community User! We have started the migration process.
This community is now in READ ONLY mode.
Read more: Important
information on the platform change.
04-14-2023 11:20 AM
I want to add local variables to my customer widget, as described in the WebIQ Designer: Package Format but for the customer widget I did not get it working.
Solved! Go to Solution.
04-14-2023 11:27 AM - edited 04-14-2023 11:29 AM
The problem was, that in the example which is part of the documentation How To - Create A Custom Widget (WebIQ 2.13) the format parameter is missing. You must insert:
"format": 2,
{number}
- format
Defines the package format, must be set to 2
for all WebIQ 2 Packages. When omitted or set to 1
it is impossible to use any of the properties localeVariables
and localScripts
.
{
"format": 2,
"name": "cx-test",
"description": "my description",
"type": "control",
"version": "1.0.0",
"build": 77,
"requires": {
"visuals": "^2.12.0"
},
"localeVariables": {
"markers": {
"en-GB": "Markers"
}
}
}
04-19-2023 08:45 AM
Actually the parameter is not missing for the tutorial as it is not required to follow the steps to complete the tutorial.
If you however want to use additional features like localizations etc. it has to be added. We'll update the documentation in the future to include the format so that this confusion won't occur again. You'll however have to look at the package format documentation anyway if you want to to things like that which then includes the parameter: https://www.smart-hmi.com/user/download/deliver/docs/documentation-dev-designer-package-format-2.13-...