// Get the opportunity company to match against.
//
// There are many ways you could get this. I'm just showing how to get the company
// using its primary key value to demonstrate the example you gave.
//
// You could get this using a popup list, say in a query form, or any number of
// other ways. The point here is that you are qualifying using a reference to an
// OpportunityCompany object not the actual database foreign key.
try {
OpportunityCompany aCompany =
(OpportunityCompany)EOUtilities
.objectWithPrimaryKeyValue(ec, "OpportunityCompany", new Integer(15));
// Setup the query match used to qualify your data source.
selectedCustomDisplayGroup.queryMatch().takeValueForKey(aCompany, "opportunityCompany");
selectedCustomDisplayGroup.qualifyDataSource();
} catch (Exception e) {
// do the necessary exception handling
}
--
Robert Walker
There are 10 types of people in the world, those who count in binary, and those who don't.