Javascript + data from entity

1
Hi all,   Is there a way to use data from an entity in combination with javascript?   For example (not what I want to do, it's just as an example) - alert('someText'), where 'someText' could be text I would get from an Entity.   As far as I can see, we can only use javascript with the HTML Snippet, but you can only use hardcoded text (html/javascript) there.   Thanks Gonçalo
asked
2 answers
2

You are going to have to build youw own custom widget. It is possible to make a widget context aware so you can use data from the context object. You can even call microflows etc. This will however require JavaScript knowlegde.

 

Take a look at: https://docs.mendix.com/howto6/Create+a+Basic+Hello+World+Custom+Widget and https://www.npmjs.com/package/generator-mendix

answered
1

What you describe is a custom widget. You can combine data with javascript. Or do you want use some dynamic javascript from an attribute in an entity?

answered