Two entities used on a mx.data.action

2
I am trying to do this at the moment is it possible to pass two objects from a widget to a microflow. mx.data.action({ params : { applyto : "selection", actionname : this.mf, entity : [this.chartlistentity, dataobject.getGUID], guids : [list.getGuid()] }, callback: function() { // }, error: function(error) { // }
asked
1 answers
4

To apply more than one guid the syntax is:

mx.data.action({
params          : {
    applyto     : "selection"
    actionname  : "MyFirstModule.GetFavoriteFood",
    guids       : [281530811285515, 281530811285506],
},
callback        : function(obj) {
    // expect single MxObject
    alert(obj.get("manufacturer"));
},
error           : function(error) {
    alert(error.description);
}

}, this);

You can see all of the documentation at http://apidocs.mendix.com/5/client/data.html

answered