The proper way to handle this in the pluggable widget API is to create properties with the attribute type with and dataSource tag. That’ll give you a function that takes a data item and returns an object with the value of the attribute. I don’t believe this portion of the API has been publicly released yet, so no documentation is available just yet.
for each referenced id you can use the mx.data.get() method
mx.data.get(
{ guid: "123456",
callback: function(obj) { console.log("Received MxObject with GUID " + obj.getGuid()); }
});
or if you want to retrieve multiple in 1 call:
mx.data.get(
{ guids: [ "123456", "456789" ],
callback: function(obj) { console.log("Received MxObject with GUID " + obj.getGuid()); }
});
Note that the shown numbers should be variables.