"BOOLEAN" not recognized in Application Designer

Erlebacher
Erlebacher Registered Posts: 82 ✭✭

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

Tagged:

Answers

  • JordanB
    JordanB Dataiker, Dataiku DSS Core Designer, Dataiku DSS Adv Designer, Registered Posts: 296 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

  • Erlebacher
    Erlebacher Registered Posts: 82 ✭✭

    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.

  • JordanB
    JordanB Dataiker, Dataiku DSS Core Designer, Dataiku DSS Adv Designer, Registered Posts: 296 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

Setup Info
    Tags
      Help me…