Re: WOPopup will not give value to DB
Re: WOPopup will not give value to DB
- Subject: Re: WOPopup will not give value to DB
- From: Ute Hoffmann <email@hidden>
- Date: Thu, 1 Jan 1970 01:09:24 +0100
Am Montag, 07.05.07 um 18:01 Uhr schrieb Chuck Hill:
I can see two possibilities:
1. You are using a dictionary as an EO attribute. If this is a
mutable dictionary, that can cause problems for EOF.
Ok, that maybe the case. But am I right that what is in the value
attribute in the html of the popup is what will be given as value to
the database accessor. If that was true, it would clearly be a
string... if not - is there a way to have a dictionary as item and
still give only the value of a defined key to the Application as value
for the database field?
2. You are violating an EOF Commandment and that is confusing EOF.
I don't think I do. The only thing I could think of is that somehow the
whole dictionary is handed over and not the one value for key I wanted
to give to the database:-(
Have you checked to see that there is no exception from saveChanges
that your code is hiding?
No, there is no exception and as there is no try catch block in this
save, I think nothing would be hidden.
Chuck
On May 7, 2007, at 6:29 AM, Ute Hoffmann wrote:
hallo,
I'm must be doing wrong something very basic - or what I try to
archive is not possible.
Bindings:
PopUpButton5: WOPopUpButton {
list = farbList; = List of Dictionarys
displayString = aNotizFarbInfo; = String:
concenation of two valueForKeys (currentFarbWert.farbe +
currentFarbWert.secoundvalue)
item = currentFarbWert; = aDictionary
selection = newItem.notizfarbe; = DB-Binding. The DB value is to be
set with currentFarbWert.farbe, a string
value = currentFarbWert.farbe;
}
Ok, the popup displays correctly. When I look at the souce Html I see
that the value-Tag is set correctly to currentFarbWert.farbe .
When I select something and push "save" the selection does not reach
the database.
Yes, the pupop is inside of a form tag
Yes, newItem is saved, as the edit-Page contains other values of
newItem and they are set correctly and I logged out that the saving
was gone through.
Any idea why I do not get the selection of the WOPopup into the
Object newItem and thus not into the database?
Thanks for a hint
Ute
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
village.net
This email sent to email@hidden
--
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve specific
problems.
http://www.global-village.net/products/practical_webobjects
_______________________________________________
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