RSA_KM_TEAM
asked on
Using Lists to filter a datagrid - and another list
Hi,
I'm just starting to experiment with Flex, and I think it's going to hold many uses for me.
I want to have two lists act as filters on a datagrid, with the added complication of having the selections from the lists also filter each other. (So, for instance, a selection from the first list filters both the datagrid and the available options in the second list).
I've created xml datasets which are called in using the HTTPservice tag and display fine, now I need to work out how to make the selections do what I want. Also, the lists are have multiple select turned on.
Is data binding the correct method to do this? I think I might need to import the events.OptionSelectEvent class and use that?
I guess i'm just trying to make sure i'm going down the right roads here, so rather than actual code which I love working out, can anyone confirm what's the best method to achieve this?
I'm just starting to experiment with Flex, and I think it's going to hold many uses for me.
I want to have two lists act as filters on a datagrid, with the added complication of having the selections from the lists also filter each other. (So, for instance, a selection from the first list filters both the datagrid and the available options in the second list).
I've created xml datasets which are called in using the HTTPservice tag and display fine, now I need to work out how to make the selections do what I want. Also, the lists are have multiple select turned on.
Is data binding the correct method to do this? I think I might need to import the events.OptionSelectEvent class and use that?
I guess i'm just trying to make sure i'm going down the right roads here, so rather than actual code which I love working out, can anyone confirm what's the best method to achieve this?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Going offline now. Success.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
>> I think I've achieved what I was hoping to thus far
Then this Q can be closed I guess.
Then this Q can be closed I guess.
And none of my comments helped you any cent of course!
ASKER
I've been working on this most of the day, and I've got to the point where I have two list controls, both of which can filter a datagrid below. (I've ignored multiple selections for now - my colleague swears it would never be needed!).
Now, the bit I can't get to work is to have the values passed from BOTH lists filter the datagrid. I'm using return item.myVariable = selectedItem essentially, following a myDatagrid.filterFunction call and then refresh.
I've been searching high and low but I can't seem to understand how to achieve this - any suggestions?