Re: saving changes
Re: saving changes
- Subject: Re: saving changes
- From: ".::welemski::." <email@hidden>
- Date: Mon, 29 Aug 2005 10:50:40 +0800
I tried the example it only displys
"UpdatedContext: ()"
which means... it is not able to determine what editingContext he is
goint to update?
what are the solutions?
On 8/28/05, Ken Anderson <email@hidden> wrote:
> It *should* save any changes made to entities in the editing context
> to the database. Is name a class attribute of the entity?
>
> Some thing I do to debug:
>
> System.out.println("Updated Objects:"+editingContext.updatedObjects
> ()); // will print what objects the ec thinks it has to save
>
> Ken
>
>
> On Aug 28, 2005, at 9:51 AM, .::welemski::. wrote:
>
> > Hi all,
> >
> > I have webapp that can upload a file and some information into the
> > database.
> > I used wodisplaygroup and it isvery succesfull, it is less coding and
> > very effecient. I am not able to insert a new file and information as
> > well as delete.
> >
> > My problem now is that, i can't get the my "edit" functionality to
> > work. In order for me to extract the right data for me to delete, view
> > and alter is that I have to invoke the
> > "myGroup.selectObject(myEntity);"
> > and then bind the necessary attributes to the fields.
> >
> > view works
> > delete works
> > but... I cant make any alteration to my existing data on my database.
> >
> > does "ec.saveChanges()" really save changes?
> >
> > I already tried binding my entity to the textfields and then calling
> > "saveChanges()" method... but it didn't work.
> >
> > I already tried binding my instance variable to the texfields like
> > this;
> >
> > varName=myEntity.name();//assuming that myEntity is already called
> > along with the displayGroup
> >
> > public void saveChangesToData()
> > {
> > myEntity.setName(varName);
> > this.session().defaultEditingContext().saveChanges();
> > return null;
> > }
> >
> > still...it didn't work...
> >
> > can anyone help me....?
> > how do i make and alteration to my data on the database?
> >
> > --
> > ð -- -- -- -- -- -- -- -- -- -- --
> > welemski
> > ð -- -- -- -- -- -- --
> > _______________________________________________
> > Do not post admin requests to the list. They will be ignored.
> > Webobjects-dev mailing list (email@hidden)
> > Help/Unsubscribe/Update your Subscription:
> > 40anderhome.com
> >
> > This email sent to email@hidden
>
>
--
-- -- -- -- -- -- -- -- -- -- --
welemski
-- -- -- -- -- -- --
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden