Discover the winners & finalists of the 2022 Dataiku Frontrunner Awards!READ THEIR USE CASES

Accessing a global variable in dictionary in Application Designer

Solved!
jjc_al
Level 1
Accessing a global variable in dictionary in Application Designer

Hi,

In my DSS application, I want to display a global variable that is inside a dictionary in my project variables using the "Variable Display" tile.

Global variables for my project look like this:

{

    "editable_by_user": {
        "data_start_date": "2022-09-01"

    }

}

I can access the "editable_by_user" dictionary with ${editable_by_user}, however, how do I access editable_by_user["data_start_date"] in the Variable Display tile?

 

Thanks in advance!


Operating system used: Linux

0 Kudos
1 Solution
SarinaS
Dataiker

Hi @jjc_al,

Indeed, you are correct that there isn't a way to access a nested variable value within DSS where the ${variable} syntax is required. I suggest posting this on the Product Ideas board. For now, the only option would be to create an unnested variable. 

Thanks,
Sarina

View solution in original post

0 Kudos
2 Replies
SarinaS
Dataiker

Hi @jjc_al,

Indeed, you are correct that there isn't a way to access a nested variable value within DSS where the ${variable} syntax is required. I suggest posting this on the Product Ideas board. For now, the only option would be to create an unnested variable. 

Thanks,
Sarina

0 Kudos
jjc_al
Level 1
Author

Hi SarinaS,

 

Thank you for your answer. Using unnested variables is indeed the solution I have found for now.

 

Best,

JJC

0 Kudos