Re: Pop Up Question
Re: Pop Up Question
- Subject: Re: Pop Up Question
- From: James Cicenia <email@hidden>
- Date: Wed, 31 Mar 2004 12:40:52 -0600
Why didn't you just make a relationship between Advertiser and
AdvertiserCategory? Then just set the relationship?
Otherwise, I would just bind displayString to industryCategory key, get
rid of the value binding, and just set it in the code.
HTH
-James Cicenia
On Mar 31, 2004, at 12:23 PM, Hunter Hillegas wrote:
I have a question about the use of pop up buttons.
I have a two entities. One is 'Advertiser' and the other is
'AdvertiserCategory'. Advertiser has a 'String' field called category
and AdvertiserCategory has a 'String' field called 'industryCategory'.
Categories are displayed in a drop down on the form and when an
advertiser is created I want the 'industryCategory' field of the
selected category item to be assigned to the 'category' string field
of the Advertiser.
I have the following wod for the pop up right now:
CategoryPopUp: WOPopUpButton {
class = "gen";
item = theAdvertiserCategoryItem;
list = theAdvertiserCategoryList;
selection = theNewAdvertiserItem.category;
value = theAdvertiserCategoryItem.industryCategory;
}
The problem is that it appears that when I submit, WO tries to assign
the value of 'item' not 'value' to the field specified in
'selection'... This obviously causes a type mismatch.
What I am wondering is if I can do this with different bindings or if
I need to do it programatically by probing the request and setting the
value myself.
Thanks,
Hunter
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.