AnsweredAssumed Answered

Using Find Task and  show results in DataGrid

Question asked by dmcgill on Sep 20, 2012
Latest reply on Sep 21, 2012 by geos_rfleet
this is the sample that I am basing my code:

Here is my link to my working code:

I have 2 Find Task routines. Both routines work and the show the queried geometry.  The 1st routine shows the attribute data in the DataGrid, but the 2nd routine has a "Sorry, an error occurred." message in the datagrid.  In addition, with the 1st DataGrid I can click the onRowClickHandler and it zooms to the selected geometry.  How do I get the 2nd routine to show data in the 2nd datagrid and enable both grids to be able to zoom to the selected geometry separately?

I commented out the "identifier" and now both grids are populating but the onRowClickHandler is not working for either of them.
#//Create data object to be used in store
            var dataYear = {
                //identifier: "RESYRBLT",  //This field needs to have unique values
                label: "RESYRBLT", //Name field for display. Not pertinent to a grid but may be used elsewhere.
                items: itemsYear

In my marketing application we are wanting to have the 1st Query / Find Task for listing the Clients, and the 2nd Query / Find Task to locate and list the Contacts. I am building a mobile application as a tool for sales people outside the office.

many thanks in advance,