"BOOLEAN" not recognized in Application Designer

Erlebacher
Level 4
"BOOLEAN" not recognized in Application Designer

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

0 Kudos
3 Replies
JordanB
Dataiker

Hi @Erlebacher.,

Your setup is working for me (shown below). Are you checking the test instance variables after unchecking the checkbox?

bool.gif

Thanks!

Jordan

0 Kudos
Erlebacher
Level 4
Author

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.

 

 

0 Kudos
JordanB
Dataiker

Hi @Erlebacher,

After editing the "defaultValue", you will need to update your test instance for the changes to be reflected:

Screen Shot 2022-12-22 at 3.04.18 PM.png

Thanks!

Jordan

โ€ƒ

0 Kudos