How can I set cookies using  Javascript in mendix?

0
Hi Guys, In my project I need to know the user preferences from the given products in my application. I need to set the cookies using javascript and need to Highlighting the products div which user chosen last time. For achieving this I used the HTMLSnippet Module. But I don’t understand the process flow of this module. Because When I using it in my application it’s not working. Also, I used the  JavaScriptButton Module where after clicking the module button from UI then only I can able to see a alert message. But In this module I unable to set the cookies and also unable to check the cookies is set or not. Can you guys help me out of this?
asked
2 answers
1

Why use a cookie? You can use non persistent entity or store the last chosen product in your database?

This way you can also add a class to the div which should be highlighted?

answered
1

I think this widget might be useful to you. It selects one or more records in a grid based on the output of a microflow:

https://appstore.home.mendix.com/link/app/27519/

answered