• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Using WOAnyField or ERXAnyField
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Using WOAnyField or ERXAnyField


  • Subject: Using WOAnyField or ERXAnyField
  • From: Paul Hoadley <email@hidden>
  • Date: Thu, 24 Apr 2014 12:05:36 +0930

Hello,

I've never used WOAnyField before, but I've come across a use case requiring it, or something like it.  I have a display group of EOs rendered as a table inside an AjaxUpdateContainer, and batch navigation is handled by ERXBatchNavigationBar.  Works fine.  Now I have a feature request to be able to search for particular objects in the display group, and WOAnyField seems like the right component—enter the search criterion, click a button, get a filtered display group.  So I've added this below the ERXBatchNavigationBar:

<wo:ERXAnyField displayGroup="$displayGroup" sourceEntityName="Source" keyList="$keyList" key="$keyIter" selectedKey="firstName" />

keyList is an NSArray<String> containing "firstName" and "lastName", both attributes on the Source EO.

But now what?  Obviously that's not going to submit itself, so I added:

<wo:AjaxSubmitButton action="$someAction" updateContainerID="sourceList" value="Search" />

where "sourceList" is the ID for the containing AjaxUpdateContainer.  Is there something I need to do in the someAction() action method?  Because all that happens now is I get a container update, but the table renders the entire display group, unfiltered by the ERXAnyField's input, and the ERXAnyField gets reset.

What am I missing here?


-- 
Paul Hoadley
http://logicsquad.net/



 _______________________________________________
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

  • Follow-Ups:
    • Re: Using WOAnyField or ERXAnyField
      • From: Paul Hoadley <email@hidden>
    • Re: Using WOAnyField or ERXAnyField
      • From: David Avendasora <email@hidden>
  • Prev by Date: Re: Deploy on CentOS
  • Next by Date: Re: Using WOAnyField or ERXAnyField
  • Previous by thread: Re: Deploy on CentOS
  • Next by thread: Re: Using WOAnyField or ERXAnyField
  • Index(es):
    • Date
    • Thread