Hi Tobias,
You can provide multiple object in a list (of the same entity inheritated entity). I you want to different entities…
In dojo widgets you can not do it nicely. Though with a trick you can.
- Don’t use a microflow property in the XML but use a string, where the user enters the full MF name (module.mf_name) (please note, this can cause refactoring problems, is it will not auto update when the MF is renamed)
- mx.data.action, provide a selection and a context at the same time
var context = new MxContext()
context.setContext("MyFirstModule.Entity", "12345");
mx.data.action({
params: {
applyto: "selection"
actionname: "MyFirstModule.GetFavoriteFood",
guids: [ "281530811285515", "281530811285506"]
},
context: context,
origin: this.mxform,
callback: function(obj) {
// expect single MxObject
alert(obj.get("manufacturer"));
},
error: function(error) {
alert(error.message);
}
});
Would recommend doing it with pluggable widgets, as they support out of the box
Another work around, is that you set the relation from one object to another in the widget. and in you microflow retrieve over association
Cheers, Andries