Skip to content

Commit

Permalink
update the Attributes Tables README to correct the queryOptions.
Browse files Browse the repository at this point in the history
  • Loading branch information
tmcgee committed Mar 18, 2015
1 parent 599aa34 commit 39b7501
Showing 1 changed file with 69 additions and 64 deletions.
133 changes: 69 additions & 64 deletions widgets/AttributesTable/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,14 @@ define({
// other instances of attributes table
topicID: 'query',

// parameters for the query
queryParameters: {
// the layer ID and sublayer ID from a layer in your map.
// alternatively you can provide a url to the MapService.
layerID: 'parcels',
sublayerID: 0
queryOptions: {
// parameters for the query
queryParameters: {
url: 'http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Census_USA/MapServer/4',
maxAllowableOffset: 100,
where: 'STATE_FIPS = \'06\' OR STATE_FIPS = \'08\''
},
idProperty: 'ObjectID'
}
}
}
Expand Down Expand Up @@ -129,82 +131,85 @@ growl: {
---
##Query Options
``` javascript
queryParameters: {
/*
What type of query:
queryOptions:
// parameters for the query
queryParameters: {
/*
What type of query:
* spatial - search spatial features (FeatureService or layer in MapService)
* spatial - search spatial features (FeatureService or layer in MapService)
* relationship - search records related to spatial features
* relationship - search records related to spatial features
* table - search a non-spatial table. This displays records in the grid but not on the map.
* table - search a non-spatial table. This displays records in the grid but not on the map.
(An additional type `database` will be supported in the future)
*/
type: 'spatial',
(An additional type `database` will be supported in the future)
*/
type: 'spatial',

/*
Default Spatial Reference
*/
outputSpatialReference: 4326,
/*
Default Spatial Reference
*/
outputSpatialReference: 4326,

/*
AGS REST URL to Query
default is null
*/
url: null,
/*
AGS REST URL to Query
default is null
*/
url: null,

/*
If no url provided and the layerID/sublayerID is passed,
the url of the layer will be retrieved from the map.
*/
layerID: null,
sublayerID: null,
/*
If no url provided and the layerID/sublayerID is passed,
the url of the layer will be retrieved from the map.
*/
layerID: null,
sublayerID: null,

/*
Attribute fields to include in the FeatureSet.
default ['*] - returns all fields
*/
outFields: ['*'],

/*
A where clause for the query. default returns all records
*/
where: '1=1',

/*
The geometry to apply to the spatial filter.
*/
geometry: null,

spatialRelationship: Query.SPATIAL_REL_INTERSECTS

},

/*
Attribute fields to include in the FeatureSet.
default ['*] - returns all fields
Provide the url if there is a spatial query linked from a table or database query
*/
outFields: ['*'],
linkedQuery: {
url: null,
idProperty: null,
ids: [] // if linkedQuery, then store the linkedIDs for use in linked query
},

/*
A where clause for the query. default returns all records
Allow a buffer to be performed before a spatial query and then use the buffer geometry in the query
if showOnly = true, the buffer is displayed but the query is not run
*/
where: '1=1',
bufferParameters: {
distance: null,
unit: null,
showOnly: false
},

/*
The geometry to apply to the spatial filter.
default Unique ID
*/
geometry: null,

spatialRelationship: Query.SPATIAL_REL_INTERSECTS
idProperty: 'FID'

},

/*
Provide the url if there is a spatial query linked from a table or database query
*/

linkedQuery: {
url: null,
idProperty: null,
ids: [] // if linkedQuery, then store the linkedIDs for use in linked query
},

/*
Allow a buffer to be performed before a spatial query and then use the buffer geometry in the query
if showOnly = true, the buffer is displayed but the query is not run
*/
bufferParameters: {
distance: null,
unit: null,
showOnly: false
},

/*
default Unique ID
*/
idProperty: 'FID',
```


Expand Down

0 comments on commit 39b7501

Please sign in to comment.