String pickTypePageConfiguration = null;
if (hasBinding("pickTypePageConfiguration"))
pickTypePageConfiguration = (String)valueForBinding("pickTypePageConfiguration");
else
pickTypePageConfiguration = "SelectPickType" + relationshipEntityName();
ERDPickPageInterface ppi = (ERDPickPageInterface)D2W.factory().pageForConfigurationNamed(pickTypePageConfiguration, session());
ppi.setNextPageDelegate(createEOWithChoices);
ppi.setCancelPage(context().page());
NSMutableArray choices = new NSMutableArray();
for (Enumeration e = entityNamesForNewInstances().objectEnumerator(); e.hasMoreElements();) {
String entityName = (String)e.nextElement();
String displayNameForEntity = (String)ERDirectToWeb.d2wContextValueForKey("displayNameForEntity", entityName, null);
if (entityName != null && displayNameForEntity != null) {
choices.addObject(new EOCreationMultipleChoice(displayNameForEntity, entityName));
}
}
ppi.setChoices(choices);
result = (WOComponent)ppi;
}
return result != null ? result : createEOWithChoices.nextPage();
}