Re: ideas to dupe an EO

2013-02-18 Thread Chuck Hill
objects.appserver._private.WOComponentReference.invokeAction(WOComponentReference.java:127)
>   at 
> com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:105)
>   at 
> com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:115)
>   at er.ajax.AjaxDynamicElement.invokeAction(AjaxDynamicElement.java:50)
>   at er.ajax.AjaxUpdateContainer.invokeAction(AjaxUpdateContainer.java:83)
>   at 
> com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:105)
>   at 
> com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:115)
>   at 
> com.webobjects.appserver.WOComponent.invokeAction(WOComponent.java:1079)
>   at 
> er.extensions.components.ERXComponent.invokeAction(ERXComponent.java:168)
>   at 
> com.webobjects.appserver._private.WOComponentReference.invokeAction(WOComponentReference.java:127)
>   at 
> com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:105)
>   at 
> com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:115)
>   at 
> com.webobjects.appserver._private.WOComponentContent.invokeAction(WOComponentContent.java:38)
>   at 
> com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:105)
>   at 
> com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:115)
>   at 
> com.webobjects.appserver._private.WOHTMLURLValuedElement.invokeAction(WOHTMLURLValuedElement.java:149)
>   at 
> com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:105)
>   at 
> com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:115)
>   at 
> com.webobjects.appserver.WOComponent.invokeAction(WOComponent.java:1079)
>   at 
> er.extensions.components.ERXComponent.invokeAction(ERXComponent.java:168)
>   at 
> com.webobjects.appserver._private.WOComponentReference.invokeAction(WOComponentReference.java:127)
>   at 
> er.extensions.components._private.ERXSwitchComponent.invokeAction(ERXSwitchComponent.java:120)
>   at 
> com.webobjects.appserver.WOComponent.invokeAction(WOComponent.java:1079)
>   at er.directtoweb.pages.ERD2WPage.invokeAction(ERD2WPage.java:747)
>   at com.webobjects.appserver.WOSession.invokeAction(WOSession.java:1357)
>   at 
> com.webobjects.appserver.WOApplication.invokeAction(WOApplication.java:1745)
>   at 
> er.extensions.appserver.ajax.ERXAjaxApplication.invokeAction(ERXAjaxApplication.java:119)
>   at 
> er.extensions.appserver.ERXApplication.invokeAction(ERXApplication.java:1988)
>   at 
> er.extensions.appserver.ERXComponentRequestHandler._dispatchWithPreparedPage(ERXComponentRequestHandler.java:157)
>   at 
> er.extensions.appserver.ERXComponentRequestHandler._dispatchWithPreparedSession(ERXComponentRequestHandler.java:235)
>   at 
> er.extensions.appserver.ERXComponentRequestHandler._dispatchWithPreparedApplication(ERXComponentRequestHandler.java:268)
>   at 
> er.extensions.appserver.ERXComponentRequestHandler._handleRequest(ERXComponentRequestHandler.java:302)
>       at 
> er.extensions.appserver.ERXComponentRequestHandler.handleRequest(ERXComponentRequestHandler.java:378)
>   at 
> com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1687)
>   at 
> er.extensions.appserver.ERXApplication.dispatchRequestImmediately(ERXApplication.java:2109)
>   at 
> er.extensions.appserver.ERXApplication.dispatchRequest(ERXApplication.java:2074)
>   at 
> com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:144)
>   at 
> com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:226)
>   at java.lang.Thread.run(Thread.java:680)
> --- On Fri, 2/15/13, David Avendasora  wrote:
> 
>> From: David Avendasora 
>> Subject: Re: ideas to dupe an EO
>> To: "Theodore Petrosky" 
>> Cc: "WebObjects Development" 
>> Date: Friday, February 15, 2013, 3:52 PM
>> Hi Ted,
>> 
>> On Feb 16, 2013, at 2:11 AM, Theodore Petrosky 
>> wrote:
>> 
>>> @Override
>>> public Agenda
>> duplicate(NSMutableDictionary> ERXCopyable> copiedObjects) {
>>> Agenda duplicate =
>> ERXCopyable.Utility.modelCopy(copiedObjects, (Agenda)
>> this);
>>> return duplicate;
>>> }
>> 
>> Whoops! My Javadoc has lead you astray. Change the
>> "modelCopy" call to "deepCopy". So:
>> 
>> @Override
>> public Agenda
>> duplicate(NSM

Re: ideas to dupe an EO

2013-02-18 Thread Theodore Petrosky
at 
com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:105)
at 
com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:115)
at 
com.webobjects.appserver._private.WOComponentContent.invokeAction(WOComponentContent.java:38)
at 
com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:105)
at 
com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:115)
at 
com.webobjects.appserver._private.WOHTMLURLValuedElement.invokeAction(WOHTMLURLValuedElement.java:149)
at 
com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:105)
at 
com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:115)
at 
com.webobjects.appserver.WOComponent.invokeAction(WOComponent.java:1079)
at 
er.extensions.components.ERXComponent.invokeAction(ERXComponent.java:168)
at 
com.webobjects.appserver._private.WOComponentReference.invokeAction(WOComponentReference.java:127)
at 
er.extensions.components._private.ERXSwitchComponent.invokeAction(ERXSwitchComponent.java:120)
at 
com.webobjects.appserver.WOComponent.invokeAction(WOComponent.java:1079)
at er.directtoweb.pages.ERD2WPage.invokeAction(ERD2WPage.java:747)
at com.webobjects.appserver.WOSession.invokeAction(WOSession.java:1357)
at 
com.webobjects.appserver.WOApplication.invokeAction(WOApplication.java:1745)
at 
er.extensions.appserver.ajax.ERXAjaxApplication.invokeAction(ERXAjaxApplication.java:119)
at 
er.extensions.appserver.ERXApplication.invokeAction(ERXApplication.java:1988)
at 
er.extensions.appserver.ERXComponentRequestHandler._dispatchWithPreparedPage(ERXComponentRequestHandler.java:157)
at 
er.extensions.appserver.ERXComponentRequestHandler._dispatchWithPreparedSession(ERXComponentRequestHandler.java:235)
at 
er.extensions.appserver.ERXComponentRequestHandler._dispatchWithPreparedApplication(ERXComponentRequestHandler.java:268)
at 
er.extensions.appserver.ERXComponentRequestHandler._handleRequest(ERXComponentRequestHandler.java:302)
at 
er.extensions.appserver.ERXComponentRequestHandler.handleRequest(ERXComponentRequestHandler.java:378)
at 
com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1687)
at 
er.extensions.appserver.ERXApplication.dispatchRequestImmediately(ERXApplication.java:2109)
at 
er.extensions.appserver.ERXApplication.dispatchRequest(ERXApplication.java:2074)
at 
com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:144)
at 
com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:226)
at java.lang.Thread.run(Thread.java:680)
--- On Fri, 2/15/13, David Avendasora  wrote:

> From: David Avendasora 
> Subject: Re: ideas to dupe an EO
> To: "Theodore Petrosky" 
> Cc: "WebObjects Development" 
> Date: Friday, February 15, 2013, 3:52 PM
> Hi Ted,
> 
> On Feb 16, 2013, at 2:11 AM, Theodore Petrosky 
> wrote:
> 
> > @Override
> > public Agenda
> duplicate(NSMutableDictionary ERXCopyable> copiedObjects) {
> >     Agenda duplicate =
> ERXCopyable.Utility.modelCopy(copiedObjects, (Agenda)
> this);
> >     return duplicate;
> > }
> 
> Whoops! My Javadoc has lead you astray. Change the
> "modelCopy" call to "deepCopy". So:
> 
>     @Override
>     public Agenda
> duplicate(NSMutableDictionary ERXCopyable> copiedObjects) {
>     Agenda duplicate =
> ERXCopyable.Utility.deepCopy(copiedObjects, (Agenda) this);
>     return duplicate;
>     }
> 
> In order to use the "modelCopy" method, you need to add
> entries Agenda's UserInfo dictionary in your EOModel which
> I'm guessing you haven't done.
> 
> Once you've done that, calling anInstanceOfAgenda.copy()
> will create a new instance of Agenda EO in the same EC as
> anInstanceOfAgenda and then copy all the attributes and
> relationships from anInstanceOfAgenda to the new instance.
> You then need to make all the related Entities implement
> ERXCopyable as well.
> 
> The deepCopy assumes that you want copies of all of Agenda's
> related EOs also, which may or may not be true (probably
> not). If it is not true, you will need to change the
> duplicate method to do what is correct for Agenda and its
> related EOs. If you have Practical WebObjects, read Chapter
> 9, with special attention to the Tweaking the Copy Process
> section on page 264.
> 
> Basically, you are going to want to use some combination of
> the various ERXCopyable.Utility.CopyRelationship methods
> where   could be reference, shallow or deep. See
> t

Re: ideas to dupe an EO

2013-02-15 Thread David LeBer
Ted,

You should be able to do something like:

((ERXCopyable)object()).copy();

Or more safely:

if (object() instanceof ERXCopyable) {
...
((ERXCopyable)object()).copy();
...
}

notactuallylookedattheapivoidwhereprohibitedbylawyourmilagemayvary.

On 2013-02-15, at 4:12 PM, Theodore Petrosky  wrote:

> Thank you very much for the catch!!!
> 
> I am stuck half way in D2W land. the TPMODInspectPage only knows about the 
> object(). I was hoping that I could just wire up a button that says "Dupe" 
> and the method would dupe the EO, saveChanges and present the lastPage.
> 
> Obviously, object().copy() won't work as object is an EO that doesn't know 
> that the method copy() exists. I don't think I should be casting this to an 
> Entity of Agenda as that kind of destroys the abstracting process.
> 
> I think I need to do (pseudo coded)
> 
> if (object().respondsTo(copy)) {
>EO newObject = object().copy();
>saveChanges(newObject().editingContext);
> }
> 
> But I am tired and lost here. I have the Practical WO book at home and hope 
> that will shed light on my ineptitude.
> 
> Ted
> 
> --- On Fri, 2/15/13, David Avendasora  wrote:
> 
>> From: David Avendasora 
>> Subject: Re: ideas to dupe an EO
>> To: "Theodore Petrosky" 
>> Cc: "WebObjects Development" 
>> Date: Friday, February 15, 2013, 3:52 PM
>> Hi Ted,
>> 
>> On Feb 16, 2013, at 2:11 AM, Theodore Petrosky 
>> wrote:
>> 
>>> @Override
>>> public Agenda
>> duplicate(NSMutableDictionary> ERXCopyable> copiedObjects) {
>>> Agenda duplicate =
>> ERXCopyable.Utility.modelCopy(copiedObjects, (Agenda)
>> this);
>>> return duplicate;
>>> }
>> 
>> Whoops! My Javadoc has lead you astray. Change the
>> "modelCopy" call to "deepCopy". So:
>> 
>> @Override
>> public Agenda
>> duplicate(NSMutableDictionary> ERXCopyable> copiedObjects) {
>> Agenda duplicate =
>> ERXCopyable.Utility.deepCopy(copiedObjects, (Agenda) this);
>> return duplicate;
>> }
>> 
>> In order to use the "modelCopy" method, you need to add
>> entries Agenda's UserInfo dictionary in your EOModel which
>> I'm guessing you haven't done.
>> 
>> Once you've done that, calling anInstanceOfAgenda.copy()
>> will create a new instance of Agenda EO in the same EC as
>> anInstanceOfAgenda and then copy all the attributes and
>> relationships from anInstanceOfAgenda to the new instance.
>> You then need to make all the related Entities implement
>> ERXCopyable as well.
>> 
>> The deepCopy assumes that you want copies of all of Agenda's
>> related EOs also, which may or may not be true (probably
>> not). If it is not true, you will need to change the
>> duplicate method to do what is correct for Agenda and its
>> related EOs. If you have Practical WebObjects, read Chapter
>> 9, with special attention to the Tweaking the Copy Process
>> section on page 264.
>> 
>> Basically, you are going to want to use some combination of
>> the various ERXCopyable.Utility.CopyRelationship methods
>> where   could be reference, shallow or deep. See
>> the javadoc for an explanation of what each will do.
>> 
>> I hope that helps you!
>> 
>> Dave
>> 
>> 
>>> 
>>> I am trying to add a method to my version of the
>> ERMODInspectPage that will create and save a new copy the
>> object().
>>> 
>>> i'm stuck with the method that fires to duplicate the
>> EO. Could you point me to some code that actually copies?
>>> 
>>> Ted
>>> 
>>> 
>>> --- On Fri, 2/15/13, David LeBer 
>> wrote:
>>> 
>>>> From: David LeBer 
>>>> Subject: Re: ideas to dupe an EO
>>>> To: "Theodore Petrosky" 
>>>> Cc: "WebObjects Development" 
>>>> Date: Friday, February 15, 2013, 10:51 AM
>>>> You probably want ERXCopyable.
>>>> 
>>>> http://www.mail-archive.com/webobjects-dev@lists.apple.com/msg52084.html
>>>> 
>>>> D
>>>> 
>>>> On 2013-02-15, at 10:42 AM, Theodore Petrosky
>> 
>>>> wrote:
>>>> 
>>>>> I am looking for an idea on duping an EO. I've
>> thought
>>>> of putting a hyperlink on the listPage then I
>> thought of
>>>>

Re: ideas to dupe an EO

2013-02-15 Thread Theodore Petrosky
Thank you very much for the catch!!!

I am stuck half way in D2W land. the TPMODInspectPage only knows about the 
object(). I was hoping that I could just wire up a button that says "Dupe" and 
the method would dupe the EO, saveChanges and present the lastPage.

Obviously, object().copy() won't work as object is an EO that doesn't know that 
the method copy() exists. I don't think I should be casting this to an Entity 
of Agenda as tha
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: ideas to dupe an EO

2013-02-15 Thread Theodore Petrosky
Thank you very much for the catch!!!

I am stuck half way in D2W land. the TPMODInspectPage only knows about the 
object(). I was hoping that I could just wire up a button that says "Dupe" and 
the method would dupe the EO, saveChanges and present the lastPage.

Obviously, object().copy() won't work as object is an EO that doesn't know that 
the method copy() exists. I don't think I should be casting this to an Entity 
of Agenda as that kind of destroys the abstracting process.

I think I need to do (pseudo coded)

if (object().respondsTo(copy)) {
EO newObject = object().copy();
saveChanges(newObject().editingContext);
}

But I am tired and lost here. I have the Practical WO book at home and hope 
that will shed light on my ineptitude.

Ted

--- On Fri, 2/15/13, David Avendasora  wrote:

> From: David Avendasora 
> Subject: Re: ideas to dupe an EO
> To: "Theodore Petrosky" 
> Cc: "WebObjects Development" 
> Date: Friday, February 15, 2013, 3:52 PM
> Hi Ted,
> 
> On Feb 16, 2013, at 2:11 AM, Theodore Petrosky 
> wrote:
> 
> > @Override
> > public Agenda
> duplicate(NSMutableDictionary ERXCopyable> copiedObjects) {
> >     Agenda duplicate =
> ERXCopyable.Utility.modelCopy(copiedObjects, (Agenda)
> this);
> >     return duplicate;
> > }
> 
> Whoops! My Javadoc has lead you astray. Change the
> "modelCopy" call to "deepCopy". So:
> 
>     @Override
>     public Agenda
> duplicate(NSMutableDictionary ERXCopyable> copiedObjects) {
>     Agenda duplicate =
> ERXCopyable.Utility.deepCopy(copiedObjects, (Agenda) this);
>     return duplicate;
>     }
> 
> In order to use the "modelCopy" method, you need to add
> entries Agenda's UserInfo dictionary in your EOModel which
> I'm guessing you haven't done.
> 
> Once you've done that, calling anInstanceOfAgenda.copy()
> will create a new instance of Agenda EO in the same EC as
> anInstanceOfAgenda and then copy all the attributes and
> relationships from anInstanceOfAgenda to the new instance.
> You then need to make all the related Entities implement
> ERXCopyable as well.
> 
> The deepCopy assumes that you want copies of all of Agenda's
> related EOs also, which may or may not be true (probably
> not). If it is not true, you will need to change the
> duplicate method to do what is correct for Agenda and its
> related EOs. If you have Practical WebObjects, read Chapter
> 9, with special attention to the Tweaking the Copy Process
> section on page 264.
> 
> Basically, you are going to want to use some combination of
> the various ERXCopyable.Utility.CopyRelationship methods
> where   could be reference, shallow or deep. See
> the javadoc for an explanation of what each will do.
> 
> I hope that helps you!
> 
> Dave
> 
> 
> > 
> > I am trying to add a method to my version of the
> ERMODInspectPage that will create and save a new copy the
> object().
> > 
> > i'm stuck with the method that fires to duplicate the
> EO. Could you point me to some code that actually copies?
> > 
> > Ted
> > 
> > 
> > --- On Fri, 2/15/13, David LeBer 
> wrote:
> > 
> >> From: David LeBer 
> >> Subject: Re: ideas to dupe an EO
> >> To: "Theodore Petrosky" 
> >> Cc: "WebObjects Development" 
> >> Date: Friday, February 15, 2013, 10:51 AM
> >> You probably want ERXCopyable.
> >> 
> >> http://www.mail-archive.com/webobjects-dev@lists.apple.com/msg52084.html
> >> 
> >> D
> >> 
> >> On 2013-02-15, at 10:42 AM, Theodore Petrosky
> 
> >> wrote:
> >> 
> >>> I am looking for an idea on duping an EO. I've
> thought
> >> of putting a hyperlink on the listPage then I
> thought of
> >> putting a button on the editPage (i am toying with
> that
> >> now).
> >>> 
> >>> I duped ERMODInspectPage and I added a button.
> If I
> >> create a localInstance in a new EC, how can I save
> this
> >> 'new' EO. it isn't a new EO yet just a duplicate in
> a new
> >> editing context. I am looking at
> ERXEOControlUtilities to
> >> see if there are any methods to create a new EO
> from my old
> >> one.
> >>> 
> >>> but some pointing in the right direction would
> be
> >> appreciated.
> >>> 
> >>> Ted
> >>>
> ___
> >>> Do not post admin requests to the list. They
> will be
> >> ignored.
> >>> 

Re: ideas to dupe an EO

2013-02-15 Thread David Avendasora
Hi Ted,

On Feb 16, 2013, at 2:11 AM, Theodore Petrosky  wrote:

> @Override
> public Agenda duplicate(NSMutableDictionary> 
> copiedObjects) {
>   Agenda duplicate = ERXCopyable.Utility.modelCopy(copiedObjects, 
> (Agenda) this);
>   return duplicate;
> }

Whoops! My Javadoc has lead you astray. Change the "modelCopy" call to 
"deepCopy". So:

@Override
public Agenda duplicate(NSMutableDictionary> 
copiedObjects) {
Agenda duplicate = ERXCopyable.Utility.deepCopy(copiedObjects, (Agenda) 
this);
return duplicate;
}

In order to use the "modelCopy" method, you need to add entries Agenda's 
UserInfo dictionary in your EOModel which I'm guessing you haven't done.

Once you've done that, calling anInstanceOfAgenda.copy() will create a new 
instance of Agenda EO in the same EC as anInstanceOfAgenda and then copy all 
the attributes and relationships from anInstanceOfAgenda to the new instance. 
You then need to make all the related Entities implement ERXCopyable as well.

The deepCopy assumes that you want copies of all of Agenda's related EOs also, 
which may or may not be true (probably not). If it is not true, you will need 
to change the duplicate method to do what is correct for Agenda and its related 
EOs. If you have Practical WebObjects, read Chapter 9, with special attention 
to the Tweaking the Copy Process section on page 264.

Basically, you are going to want to use some combination of the various 
ERXCopyable.Utility.CopyRelationship methods where   could be 
reference, shallow or deep. See the javadoc for an explanation of what each 
will do.

I hope that helps you!

Dave


> 
> I am trying to add a method to my version of the ERMODInspectPage that will 
> create and save a new copy the object().
> 
> i'm stuck with the method that fires to duplicate the EO. Could you point me 
> to some code that actually copies?
> 
> Ted
> 
> 
> --- On Fri, 2/15/13, David LeBer  wrote:
> 
>> From: David LeBer 
>> Subject: Re: ideas to dupe an EO
>> To: "Theodore Petrosky" 
>> Cc: "WebObjects Development" 
>> Date: Friday, February 15, 2013, 10:51 AM
>> You probably want ERXCopyable.
>> 
>> http://www.mail-archive.com/webobjects-dev@lists.apple.com/msg52084.html
>> 
>> D
>> 
>> On 2013-02-15, at 10:42 AM, Theodore Petrosky 
>> wrote:
>> 
>>> I am looking for an idea on duping an EO. I've thought
>> of putting a hyperlink on the listPage then I thought of
>> putting a button on the editPage (i am toying with that
>> now).
>>> 
>>> I duped ERMODInspectPage and I added a button. If I
>> create a localInstance in a new EC, how can I save this
>> 'new' EO. it isn't a new EO yet just a duplicate in a new
>> editing context. I am looking at ERXEOControlUtilities to
>> see if there are any methods to create a new EO from my old
>> one.
>>> 
>>> but some pointing in the right direction would be
>> appreciated.
>>> 
>>> Ted
>>> ___
>>> Do not post admin requests to the list. They will be
>> ignored.
>>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
>>> Help/Unsubscribe/Update your Subscription:
>>> https://lists.apple.com/mailman/options/webobjects-dev/dleber_wodev%40codeferous.com
>>> 
>>> This email sent to dleber_wo...@codeferous.com
>> 
>> 
> 
> 


—
WebObjects - so easy that even Dave Avendasora can do it!™
—
David Avendasora
Senior Software Abuser
Kaiten, Inc.





 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: ideas to dupe an EO

2013-02-15 Thread Theodore Petrosky
David,

I downloaded the ERXCopyable.java and added it to my Wonder. 

I added the implements ERXCopyable to my EO and experimented with 
adding the default overrides. Finally living with:

@Override
public Agenda copy() {
Agenda copy = (Agenda) copy(new NSMutableDictionary>());
return copy;
}

@Override
public Agenda copy(NSMutableDictionary> 
copiedObjects) {
Agenda copy = ERXCopyable.DefaultImplementation.copy(copiedObjects, 
(Agenda) this);
return copy;
}

@Override
public Agenda duplicate(NSMutableDictionary> 
copiedObjects) {
Agenda duplicate = ERXCopyable.Utility.modelCopy(copiedObjects, 
(Agenda) this);
return duplicate;
}

I am trying to add a method to my version of the ERMODInspectPage that will 
create and save a new copy the object().

i'm stuck with the method that fires to duplicate the EO. Could you point me to 
some code that actually copies?

Ted


--- On Fri, 2/15/13, David LeBer  wrote:

> From: David LeBer 
> Subject: Re: ideas to dupe an EO
> To: "Theodore Petrosky" 
> Cc: "WebObjects Development" 
> Date: Friday, February 15, 2013, 10:51 AM
> You probably want ERXCopyable.
> 
> http://www.mail-archive.com/webobjects-dev@lists.apple.com/msg52084.html
> 
> D
> 
> On 2013-02-15, at 10:42 AM, Theodore Petrosky 
> wrote:
> 
> > I am looking for an idea on duping an EO. I've thought
> of putting a hyperlink on the listPage then I thought of
> putting a button on the editPage (i am toying with that
> now).
> > 
> > I duped ERMODInspectPage and I added a button. If I
> create a localInstance in a new EC, how can I save this
> 'new' EO. it isn't a new EO yet just a duplicate in a new
> editing context. I am looking at ERXEOControlUtilities to
> see if there are any methods to create a new EO from my old
> one.
> > 
> > but some pointing in the right direction would be
> appreciated.
> > 
> > Ted
> > ___
> > Do not post admin requests to the list. They will be
> ignored.
> > Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
> > Help/Unsubscribe/Update your Subscription:
> > https://lists.apple.com/mailman/options/webobjects-dev/dleber_wodev%40codeferous.com
> > 
> > This email sent to dleber_wo...@codeferous.com
> 
> 

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: ideas to dupe an EO

2013-02-15 Thread David LeBer
You probably want ERXCopyable.

http://www.mail-archive.com/webobjects-dev@lists.apple.com/msg52084.html

D

On 2013-02-15, at 10:42 AM, Theodore Petrosky  wrote:

> I am looking for an idea on duping an EO. I've thought of putting a hyperlink 
> on the listPage then I thought of putting a button on the editPage (i am 
> toying with that now).
> 
> I duped ERMODInspectPage and I added a button. If I create a localInstance in 
> a new EC, how can I save this 'new' EO. it isn't a new EO yet just a 
> duplicate in a new editing context. I am looking at ERXEOControlUtilities to 
> see if there are any methods to create a new EO from my old one.
> 
> but some pointing in the right direction would be appreciated.
> 
> Ted
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/dleber_wodev%40codeferous.com
> 
> This email sent to dleber_wo...@codeferous.com


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com