Select to view content in your preferred language

running a GP in flex.

844
4
12-14-2010 11:33 AM
RichardKrell
Emerging Contributor
Hi all,
Hope it's warmer where you are then it is here in Chicago today.  Anyway I have been struggling with a problem for a very long time now and I have decided to ask the experts if they can help me.

I created a model in ArcGIS Desktop that when ran asks me to pick a county name from a dropdown box.  Then based on that the county chosen it goes into two other layers (one a point and one a line) and chooses everything within the county.  Now it takes it out to a dbf and once the two have been ran it merges them into one dbf.  It is working fine in Desktop and now I am trying to get it to work in our Flex app.

I want to select a county from a combobox in the Flex app and then have it run the model and return with the dbf and populate the datagrid with the results and at the same time highlight all the graphical features in the map that were identified by the model.

I hope I have expained this well enough.  If not let me know and I will try to do better.

Thanks
Richard Krell
Senior Analyst
Chicago Metropolitan Agency for Planning
Tags (2)
0 Kudos
4 Replies
RobertScheitlin__GISP
MVP Emeritus
Richard,

   I would say ditch the GP and do all of this in Flex as it sounds like ultimately you want graphics selected, so why even bring a dbf into the equation? You can do this with 2 queries and then merge the results together (as the returned value of a query is just a featureset that is a gloried graphics array collection, easy to add to).
0 Kudos
RichardKrell
Emerging Contributor
Robert,
Thanks for the quick response.  This is easy for you to say but I am pretty much a newbee at this and have been working on this particular problem for a very long time.  I work on it a while and then go on to something else, then come back to it for a while and so on and so on.

Could you point me to an example of performing a selection by area or polygon.  That is my first real issue and then I will go onto merging two selected featuresets together.

I really hate bothering people with something that to me should be so very simple but everytime I look at it I go into a brain freeze... brrrrrrrrrrrrrrrrrrrrrrr 🙂

Again thanks
0 Kudos
DasaPaddock
Esri Regular Contributor
0 Kudos
RichardKrell
Emerging Contributor
thank you Dasa, I had already found that example and am trying to use it to create mine.  The thing I did not know about until now was the Geometry service.  That makes A LOT of sense and hopefully I can now put this problem behind me.

I will let everyone know.
Again thanks to everyone who responded and if you should think of anything else, please let me know.
0 Kudos