Re: How to propagate subcomponent ivars to its parent component

From: Ricardo J. Parada (rparad..ac.com)
Date: Mon Mar 02 2009 - 10:08:04 EST

  • Next message: Jeremy Matthews: "Stable Installer Update (5693)"

    On Mar 2, 2009, at 5:04 AM, amiel montecillo wrote:

    > Hello All,
    >
    > I am trying to create a reusable text filter component. It has 2
    > WOPopupButtons and a WOTextField contained in a WOForm to filter a
    > grid listing.
    >
    > How do I make it such that the parent component will get the values
    > selected on the 3 fields when the filter form is submitted?
    >
    > On top of that, I also need to create an action binding on my
    > subcomponent so that I can bind that action on the parent and filter
    > the results. Any articles/posts explaining how to accomplish this?
    >
    > Thanks,
    > Amiel
    > --
    > socket error: unable to connect to 127.0.0.1

    If your component does not synchronize values automatically, i.e.
    synchronizesVariablesWithBindings() returns false, then you can use
    setValueForBinding(). You can call it from the action that gets
    called when you submit the form.

    To call the action bound to your component's action binding I would
    use valueForBinding("action").



    This archive was generated by hypermail 2.0.0 : Mon Mar 02 2009 - 10:09:23 EST