I think I've found a solution that I'll pass on.

 

UserAA has a bindable Boolean variable that is used to set a property in
the component.  That property is bound to the enabled property of the
container.

 

From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On
Behalf Of Davidson, Jerry
Sent: Friday, June 08, 2012 8:57 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Activate Component (enable)

 

  

I have a form that includes a component.  The form includes selection
criteria and a search button.  When the user clicks the search button, I
want to enable the component and populate a grid of the results of the
search.  Taking baby steps, the first thing I want to do is the
enabling.

 

Search
Results

                Select office:
Select    Name    Case      Office

                Select case:
[ ]            x              x              x

                Select from date:
[ ]            y              y              y

                Select to date:
[ ]            z              z              z

                Search Btn
Details

 
Start      End        Stuff      More Stuff

 
1              1              1              1

 
2              2              2              2

 

The results and details sections (in same component) are disabled until
a user selects stuff.  Step one is to enable the component when the
search button is clicked and all the edit checks are passed.

 

I was thinking of passing a boolean in the component bound to a variable
that is defaulted to false and set to true in the search button code,
but that didn't work.  I couldn't find a property of the component that
could be set in the search button click event.

 

TIA,

Jerry

 



Reply via email to