You can define a filter function like this
public function filterType(item:Object):Boolean {
var result:Boolean = false;
if (item.Approval_type ==
dgType.selectedItem.Approval_type)
result = true;
return result;
}
and on change event of the combobox(dgtype is the id for the combobox
containing approval types), bind the above filter function like this
ApproverList.filterFunction = filterType;
ApproverList.refresh();
Jay Jayaraman
Central Billing Services
Financial Management and Planning
(404) 498-8453 (W)
(404) 273-7131 (C)
"Fox, Andrew J" <[email protected]>
Sent by: [email protected]
01/09/2009 08:07 AM
Please respond to
[email protected]
To
discussion <[email protected]>
cc
Subject
[AFFUG Discuss] Best way to split CF query result for multiple UI elements
Sorry if this is a re-post, it sisn't seem to go through yesterday...
I'm working on an application that handles workflow routing for a
document. There is a stored procedure that returns all of the approvers
for the document, along with the type of approval they are providing (i.e
internal, external, special.) I need to split the different types out in
order to show the selected users in either a DataGrid or BindableComboBox
of all possible users of that type.
What is the best way to split this incoming data and then reference it? I
have been able to do a query of queries to get 3 arrays of Object but
think this is probably not the right way of doing it. I'm also not clear
on how to reference the different arrays now that they are split.
Any suggestions (especially with a bit of sample code) would be greatly
appreciated!
--
Andy Fox
Systems Analyst III
Georgia Tech OIT-EIS
-------------------------------------------------------------
To unsubscribe from this list, simply email the list with unsubscribe in
the subject line
For more info, see http://www.affug.com
Archive @ http://www.mail-archive.com/discussion%40affug.com/
List hosted by http://www.fusionlink.com
-------------------------------------------------------------
-------------------------------------------------------------
To unsubscribe from this list, simply email the list with unsubscribe in the
subject line
For more info, see http://www.affug.com
Archive @ http://www.mail-archive.com/discussion%40affug.com/
List hosted by http://www.fusionlink.com
-------------------------------------------------------------