How to filter 2D array in Flex and perform computation based on Filtering


i have array follows:

asia     india   calcutta 100 200 
asia     india   chennai  200 400
asia     india   mumbai   100 300
asia     pak     xxxxxx   100 300
asia     pak     ssssss   200 100
americas canada  ottawa   200 200
americas canada  toronto  120 200
americas mexico  sonoro   110 500

i need filter above dataset calculating sum of each region use of specific filter such region name given.(eg. asia)

output filter asia must give me :

india   400 900 
pak    
300 400

how possible in flex array 2d.

use example array input function , create second array output.

 

loop through first array finding unique country names filter region, each country name, sum entries country, add row country output array.



More discussions in Flex (Read Only)


adobe

Comments

Popular posts from this blog

How to set the order of FAQs instead of alphabetical

Thread: Get UK Keyboard working

how do I change the e-mail address for my merchant account