Re: saving changes
Re: saving changes
- Subject: Re: saving changes
- From: Ken Anderson <email@hidden>
- Date: Wed, 31 Aug 2005 06:48:55 -0400
EOModels often get changed by mistake because fields like the lock
and class properties can be checked/unchecked when bringing the
EOModel window forward. I think this is a bug, but... some people
might argue that they wanted to toggle it before the window was key.
Either way, I make it a habit to bring EOModel windows forward by
selecting the application and using the windows menu (even if I can
see part of the EOModel window).
Ken
On Aug 31, 2005, at 12:09 AM, .::welemski::. wrote:
Thanks guys,
Actually I recreated my project, then it works. So I made an
experimentations like uploading all types of file in all sizes light
and heavy. Then I realized the problem was my "EOModel" file. It keeps
on changing everytime something bad happens. It keeps on unchecking
like "Allows Null" it even erases the "Width" fields on the EOModel.
So I made a new EOModel File and reloaded it into my project. This is
wierd... realy, really wierd. I didn't actually made any hardcode into
my project, just simple WODisplayGroup syntax. One second it works,
then one second it just went crazy.
I think, in my opinion, there's still bugs in WebObjects TIGER
version. I just hope apple can fix it soon. I kinda don't like the
effects on EOModeler and the built-in plugin in XCode, because I think
they have a conflict on each other... toinks...
Anyways, I belive on apple's technology and i know they will "FIX"
it "SOON"...
:D
On 8/30/05, Chuck Hill <email@hidden> wrote:
Two explanations come to mind:
1. You are saving the wrong editing context
2. Your bad code has hosed EOF. Does anything here look familiar?
http://www.wodev.spearway.com/cgi-bin/WebObjects/WODev.woa/wa/Main?
wikiPage=EOFCommandments
On Aug 28, 2005, at 6: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?
Of course. Have you checked to see that myEntity.editingContext() ==
ec?
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();
Have you checked to see that myEntity.editingContext() == session
().defaultEditingContext().?
Chuck
--
Practical WebObjects - a book for intermediate WebObjects developers
who want to increase their overall knowledge of WebObjects, or those
who are trying to solve specific application development problems.
http://www.global-village.net/products/practical_webobjects
--
-- -- -- -- -- -- -- -- -- -- --
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
_______________________________________________
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