how to get data from domain model inside javascript snippet ?

hi team , how i can retrieve data from  below three entities inside the javascript snippet ?      this is my javascript snippet -    and i have already placed this widget inside the data view like this now i want to retrieve data from the above 3entites inside my javascript snippet . how i can do ? - 
1 answers

You need to use the Mendix JavaScript Client API to do this. Have a look at the method.


For example, to get all the System.User objects, you can use the following...{
    xpath: "//System.User",
    callback: function(objs) {
        console.log("Received " + objs.length + " MxObjects");


I hope this helps. Good luck!