Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Struct variables in Qlik Sense

Hello!

I am exploring ways to use variables in Qlik Sense. Is there a way to create struct variables in the data load editor on this form?

SET playerPos = {

     x: 1,

     y: 2

};

Obviously I tried the above code which when referred to (=playerPos) just returns { x: 1, y: 2 };

As you may understand I'm trying to achieve the possibility to access the x and y attribute by playerPos.x and playerPos.y.

Thanks!

Daniel Odenbrand

1 Solution

Accepted Solutions
Not applicable
Author

As what I've heard up until now is that it's not possible as of today. Of course you can do workarounds like representing structs via string and create parser functions for setting and getting attributes, but this is indeed quite tedious. Maybe it will be implemented some day.

Regards,

Daniel

View solution in original post

1 Reply
Not applicable
Author

As what I've heard up until now is that it's not possible as of today. Of course you can do workarounds like representing structs via string and create parser functions for setting and getting attributes, but this is indeed quite tedious. Maybe it will be implemented some day.

Regards,

Daniel