Today I ended up in the situation where I would like to provide the relevant data objects to the DOM myself instead of letting DOM handle the get itself through the relationship. Normally I'd do the filtering in the where clause but in this case I have to do several queries to figure out which data objects to use.
I went digging in the classes and found setCustomSourceItems() in TableListField and it seemed to be exactly what I needed. However using this function had no effect whatsoever on the data objects that showed up in the DOM list.
My question is if there's any way to handle this kind of scenario in the DOM?
Is there some other method I've missed or something perhaps?
customSourceItems will be available in the next release of DOM. Over the next few months you'll be hearing a lot about the next version, and one of the focus points is to start from the ground up and include some of those fundamental features so that DOM is not just for managing relationships, but also for showing arbitrary data sets.