• 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
Re: Using WOAnyField or ERXAnyField
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using WOAnyField or ERXAnyField


  • Subject: Re: Using WOAnyField or ERXAnyField
  • From: Aaron Rosenzweig <email@hidden>
  • Date: Thu, 24 Apr 2014 09:41:08 -0400

Hi Paul,

my guess is that you only need “updateDisplayedObjects()”

At any rate, if you want it more automatic, make your own “filter” widget. use the AnyField like you have inside of it but then wrap it with an “AjaxObserveField” so that when you make a change it will automatically submit and you don’t need a button.

Haha, I didn’t know AnyField existed, I’ve always rolled my own.
Aaron Rosenzweig / Chat 'n Bike
e:  email@hidden  t:  (301) 956-2319
Chat 'n Bike Chat 'n Bike

On Apr 24, 2014, at 1:44 AM, Paul Hoadley <email@hidden> wrote:

On 24/04/2014, at 12:05 PM, Paul Hoadley <email@hidden> wrote:

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?

After some trial and error, it turns out that this is sufficient in someAction():

displayGroup().setQualifier(displayGroup().qualifierFromQueryValues());
displayGroup().updateDisplayedObjects();

For whatever reason I was expecting it to be more automatic, but it seems to work as intended now.


-- 
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
References: 
 >Using WOAnyField or ERXAnyField (From: Paul Hoadley <email@hidden>)
 >Re: Using WOAnyField or ERXAnyField (From: Paul Hoadley <email@hidden>)

  • Prev by Date: Re: JNDI JDBC entry in web.xml Servlet Deployment vs. Migrations
  • Next by Date: Re: JNDI JDBC entry in web.xml Servlet Deployment vs. Migrations
  • Previous by thread: Re: Using WOAnyField or ERXAnyField
  • Next by thread: Re: SQL Generation Issue
  • Index(es):
    • Date
    • Thread