Re: WOPopUpButton Used For A Search
Re: WOPopUpButton Used For A Search
- Subject: Re: WOPopUpButton Used For A Search
- From: "Jonathan Fleming" <email@hidden>
- Date: Thu, 27 Feb 2003 22:37:35 +0000
Hello George,
I had horrid paper work to do so had to break away from the app, but I'm
back on it now. I still have a problem and it may be that I am simply brain
dead or that I just don't know how to do what is needed. I can't work out
how not to populate the selectedTbNavPageToSearch with the full data / all
attributes of the TbNavPage Class. Also do I have to create an NSDictionary
for the queryMatch() method? I lost.
sorry! I've been looking at this with a determination not to run back to you
or the list for help because I'm feeling rather brainless.
I need your help
Thanks
Jonathan
//the iVar
protected TbNavPage selectedTbNavPageToSearch;
//Your code with uncompleted search code in the "if"
public void setSelectedTbNavPageToSearch(TbNavPage value) {
selectedTbNavPageToSearch = value;
if (selectedTbNavPageToSearch!=null) {
// add search code here
tbnavpageDisplayGroup.queryMatch();
}
}
public TbNavPage getSelectedTbNavPageToSearch() {
return selectedTbNavPageToSearch;
}
From: George Domurot <email@hidden>
To: "Jonathan Fleming" <email@hidden>
CC: email@hidden, email@hidden
Subject: Re: WOPopUpButton Used For A Search
Date: Wed, 26 Feb 2003 09:38:20 -0500
You aren't required to use name and value bindings. But, you will need to
bind selection to a new variable, say selectedTbNavPageToSearch. Setup a
setSelectedTbNavPageToSearch method that accepts the new setting and
handles the search, such as:
public void setSelectedTbNavPageToSearch(TbNavPage value)
{
selectedTbNavPageToSearch = value;
if (selectedTbNavPageToSearch!=null)
{
// add search code here
}
}
On Wednesday, February 26, 2003, at 08:13 AM, Jonathan Fleming wrote:
CategoryPopUp: WOPopUpButton {
displayString = tbnavpage.navPageName;
item = tbnavpage;
list = sortedNavPageNames;
name = "navPagePopupList";
value = tbnavpage.navPageName;
selection = tbnavpage;
}
_______________________________________________
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.
_________________________________________________________________
Stay in touch with absent friends - get MSN Messenger
http://messenger.msn.co.uk
_______________________________________________
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.