I have a dataset with Incidents....Multiple Individuals with various incidentsI can take a dataset and return the results to a listbox. Great.But I want to make this a bit more together.Just looking for soem ideas and maybe a push in the right direction...I would like to run a query that Grabs the unique individuals and then calculates on that, and then return each individuals stats...I might have 30 individuals and 5-10 incidents...but might only report total incidents for each person....there is also a chance that not all 30 individuals will have an incident in the dataset...especially if its a dataset for specific time rangeJohn F
Accidents: 20
Fires: 34
Amy
Accidents: 20
Fires: 34
etc
I can run this query which returns all the resords and fields...I assume that I would have to create a couple temporary place holders and then create a coupld functions to calculate the values?I am just unsure how to tackle this...or where to start...I assume that I need all the records as stated below with the (Outfields.Add"*") Dim queryPolice As New ESRI.ArcGIS.Client.Tasks.Query()
queryPolice.OutFields.Add("*")
queryPolice.ReturnGeometry = True
' Return all features
queryPolice.Where = "1=1"
queryPolice.OutSpatialReference = MyMap.SpatialReference
queryTaskPolice.ExecuteAsync(queryPolice)
Maybe in here set a few variables and then count and add to variables each loop...Dim JohnAccident....If John and Accident then set varaible JohnAccident = + 1The thing is I will have a bunch of individuals and a bunch of incident types....any way to automate this with code instead of hardcoding everything?
Dim variables, varaibles
For Each selectedGraphic As Graphic In args.FeatureSet.Features
If then
calculate variables
set to placeholders that will report in listbox
End If
Next selectedGraphic
If any of that made sense....Just looking for some ideas