saving changes
saving changes
- Subject: saving changes
- From: ".::welemski::." <email@hidden>
- Date: Sun, 28 Aug 2005 21:51:00 +0800
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:
This email sent to email@hidden