Hi,
You have secondary data sources for your lists then, right? You can loop through your secondary DOM by code (do a search on this forum for code sample), and just assign the value you need to the node in your main DOM (thisXDocument.DOM.selectSingleNode("YourXPath")).
Regards,
Franck Dauché
InfoPathDev