Sign up to take part
Registered users can ask their own questions, contribute to discussions, and be part of the Community!
Registered users can ask their own questions, contribute to discussions, and be part of the Community!
In the application designer, I defined a BOOLEAN variable:
{
"name": "shuffle",
"type": "BOOLEAN",
"label": "Shuffle rows?",
"defaultValue": "false",
"mandatory": false,
"canSelectForeign": false,
"markCreatedAsBuilt": true,
"allowDuplicates": true,
"visibilityCondition": "true",
"getChoicesFromPython": false,
"triggerParameters": [],
"disableAutoReload": false,
"canCreateDataset": true
},
However, in test mode, the BOOLEAN is not accepted when false. The checkbox is always turned on.
Can anybody help me with this? Thanks.
Operating system used: macOS Ventura
Hi @Erlebacher.,
Your setup is working for me (shown below). Are you checking the test instance variables after unchecking the checkbox?
Thanks!
Jordan
Hi @JordanB,
Thanks for the video. Your experiment does work for me. But I must have misunderstanding. I thought that the edit Variable box, with statements such as:
"name": "shuffle",
"type": "BOOLEAN",
"label": "Shuffle rows?",
"defaultValue": "false",
would set the checkbox or not depending on the value of "defaultValue" the first time I create an instance of my application through the Application Designer. The content of "Variables" window should have nothing to do with this. My expectations are met with the STRING and DOUBLE type, but not with the BOOLEAN type. Thanks.
Hi @Erlebacher,
After editing the "defaultValue", you will need to update your test instance for the changes to be reflected:
Thanks!
Jordan
โ