From: Anjo K. <an...@us...> - 2005-08-19 08:58:37
|
Update of /cvsroot/wonder/Wonder/Common/Frameworks/ERDirectToWeb/Sources/er/directtoweb In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1156/ERDirectToWeb/Sources/er/directtoweb Modified Files: ERDEditOwnedRelationship.java Log Message: extracting ERXEnterpriseObject interface, so ERXCustomObject should actually work Index: ERDEditOwnedRelationship.java =================================================================== RCS file: /cvsroot/wonder/Wonder/Common/Frameworks/ERDirectToWeb/Sources/er/directtoweb/ERDEditOwnedRelationship.java,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** ERDEditOwnedRelationship.java 26 May 2004 22:43:06 -0000 1.15 --- ERDEditOwnedRelationship.java 19 Aug 2005 08:58:22 -0000 1.16 *************** *** 83,87 **** NSArray result = null; if (initialArray != null) { ! localContext=((ERXGenericRecord)object()).isNewObject() ? ERXEC.newEditingContext(object().editingContext(), false) : ERXEC.newEditingContext(object().editingContext().parentObjectStore()); --- 83,87 ---- NSArray result = null; if (initialArray != null) { ! localContext=((ERXEnterpriseObject)object()).isNewObject() ? ERXEC.newEditingContext(object().editingContext(), false) : ERXEC.newEditingContext(object().editingContext().parentObjectStore()); *************** *** 182,186 **** epi = (EditPageInterface)D2W.factory().pageForConfigurationNamed(editConfigurationName, session()); epi.setNextPage(context().page()); ! if (((er.extensions.ERXGenericRecord)eo).isNewObject()) localContext = ERXEC.newEditingContext(object().editingContext(), false); else --- 182,186 ---- epi = (EditPageInterface)D2W.factory().pageForConfigurationNamed(editConfigurationName, session()); epi.setNextPage(context().page()); ! if (((ERXEnterpriseObject)eo).isNewObject()) localContext = ERXEC.newEditingContext(object().editingContext(), false); else *************** *** 249,253 **** EOEnterpriseObject newEO = ERXEOControlUtilities.createAndInsertObject(localContext, entityNameForNewInstances); // If the object already exists, then hookup the relationship, if not do it after the object is saved. ! if (!((er.extensions.ERXGenericRecord)object).isNewObject()) { EOEnterpriseObject localEO = EOUtilities.localInstanceOfObject(localContext, object); if (localEO != null) --- 249,253 ---- EOEnterpriseObject newEO = ERXEOControlUtilities.createAndInsertObject(localContext, entityNameForNewInstances); // If the object already exists, then hookup the relationship, if not do it after the object is saved. ! if (!((ERXEnterpriseObject)object).isNewObject()) { EOEnterpriseObject localEO = EOUtilities.localInstanceOfObject(localContext, object); if (localEO != null) |