Select to view content in your preferred language

multiple queries in one datagrid

3564
5
06-04-2015 07:34 AM
PeggyCorey
Emerging Contributor

Can anyone point me to an example of returning multiple query results to one datagrid?  My queries will be querying multiple layers that contain the same attribute fields.

Thanks for you help!

0 Kudos
5 Replies
RickeyFight
MVP Regular Contributor

Peggy,

This app that I made does this

City of Ashland Cemetery

The app pulls from 2 layers a cemetery and a mausoleum layer

PeggyCorey
Emerging Contributor

Rickey,

Thanks for this example!

However, this example uses the FindTask, but I am interested in using the QueryTask specifically... sorry, I should have stated that before.

Anyone have a QueryTask example?

Thanks!

0 Kudos
thejuskambi
Frequent Contributor

That shouldn't matter. All you need to do is merge the array items which your are passing it to the dataStore.

PeggyCorey
Emerging Contributor

Great... I would still love to see an example, as I am having great difficulty doing this.

Thanks for any examples!

0 Kudos
thejuskambi
Frequent Contributor

Attached is the example for how to combine results in the dgrid. in example use the button to select the state you wish to be added to the dgrid.

0 Kudos