if (this.getWindowInfo().getParentWindow() != null) {
currec = this.getWindowInfo().getParentWindow().getCurRec();
}
if ((this.getWindowInfo().getDataToDisplay() == ExpressClassWindow.DD_ASSOCIATED_RECORD) && currec != null) {
BusinessQuery qry = currec.newQuery();
Array_Of_QueryAttrMap<QueryAttrMap> fks = qry.getForeignAttrMap(this.getWindowInfo().getAssocNum());
if (fks != null && fks.size() > 0 && fks.get(0).getLocal() == 1) {
//
// Record class contains a foreign key that references primary key
// in 'currec' class (Primary keys always begin at ATTR_ number=1).