Dataiku App - VisibilityCondition

Aastha
Aastha Dataiku DSS Core Designer, Dataiku DSS ML Practitioner, Registered Posts: 4

Hi,

While creating the dataiku app, I am adding a tile, 'Edit Project Variable'. I want to make that parameter visible only if multiple conditions are met.

How do I integrate the "visibilityCondition" for multiple conditions in the Application Designer? Currently the condition is like below:

"visibilityCondition": "model.CSV_UPLOAD==2"

However, I want to show the parameter if CSV_UPLOAD==2 and DIRECTIONAL takes value 2 or 3. How can I add this to the app?

Thanks,

Aastha

Answers

  • Antal
    Antal Dataiku DSS Core Designer, Dataiku DSS ML Practitioner, Neuron, Dataiku DSS Adv Designer, Registered, Neuron 2023 Posts: 91 Neuron

    The conditions are javascript syntax (if you want to google syntax in the future).

    In your case it would be:

    "visibilityCondition": "model.CSV_UPLOAD == 2 && (model.DIRECTIONAL== 2 || model.DIRECTIONAL == 3)"

  • Aastha
    Aastha Dataiku DSS Core Designer, Dataiku DSS ML Practitioner, Registered Posts: 4

    Thank you! This helps.

Setup Info
    Tags
      Help me…