Skip to content

Instantly share code, notes, and snippets.

@cici004
Created May 17, 2016 21:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cici004/176984426aadbf81bab98c9d3ef5a04b to your computer and use it in GitHub Desktop.
Save cici004/176984426aadbf81bab98c9d3ef5a04b to your computer and use it in GitHub Desktop.
{
name: 'Search by SR',
expression: '', // additional where expression applied to all queries
idProperty: 'objectid_1',
queryParameters: {
type: 'spatial', // spatial, relationship, table or database
url: 'http://sv04gis:6080/arcgis/rest/services/Surveys/ControlPoints/MapServer/0'
outFields :['*']
},
attributeSearches: [
{
name: 'Search by SR',
searchFields: [
{
name: 'Enter SR Attribute',
label: 'Enter SR',
expression: '(surv_req LIKE\'[value]%\')',
placeholder: 'ex SR: 08-213',
required:false,
minChars: 3
}
],
title: 'Control Points',
topicID: 'controlpoints',
gridOptions: {
columns: [
{
field:'objectid_1',
label:'No.',
width: 100
},
{
field: 'northing',
label: 'Northing',
width:150
},
{
field: 'easting',
label: 'Easting',
width:150
},
{
field: 'unit',
label: 'Unit',
width:150
},
{
field: 'elevation',
label: 'Elevation',
width:150
},
{
field: 'description',
label: 'Description',
width:150
}
}
}
]
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment