Logging return from mx.data.action to console

0
I am trying to log an object list to the console (for testing purpose).  And now using: console.log(result).  See below. But this gives only the GUIDs.   Is there a way to log the attributes and values to the console?   Many thanks!   mx.data.action({     params: {         actionname: "MyFirstModule.Department_Get_All"     },     origin: this.mxform,     callback: function(result) {         console.log(result);     },     error: function(error) {         alert(error.message);     },     onValidation: function(validations) {         alert("There were " + validation.length + " validation errors");     } });
asked
1 answers
0

Use

 

mx.data.get({
    guids: [ "123456", "456789" ],
    callback: function(objs) {
        console.log("Received " + objs.length + " MxObjects");
    }
});

 

See API

 

 

 

answered