Attribute Table query where 1=1 not binding the attribute information in grid but highlighting the features on map
mayur9785 opened this issue · 1 comments
mayur9785 commented
I added the below options for Attributes table widgets
attributesTable: {
include: true,
id: 'attributesContainer',
type: 'domNode',
srcNodeRef: 'attributesContainer',
path: 'gis/dijit/AttributesTable',
//options: 'config/attributesTable'
options: {
map: true,
mapClickMode: true,
useTabs: false,
sidebarID: 'sidebarBottom',
/*
any predefined tables to add to the tab container or possibly just one table
*/
tables: [
{
// title for tab
title: 'Audit Stage',
// unique topicID so it doesn't collide with
// other instances of attributes table
topicID: 'auditStageQuery',
// allow tabs to be closed
// confirm tab closure
closable: true,
confirmClose: true,
queryOptions: {
// parameters for the query
queryParameters: {
url: 'http://myserver.com/arcgis/rest/services/Road_Safety_Audit/MapServer/0',
maxAllowableOffset: 100,
where:'1=1' \\ this is not binding info in grid but highlighting on map
//'PROJECT_NUMBER = \'AA-0003\'', \\ both working
},
idProperty: 'OBJECTID'//'ObjectID'
}
}
],
}
},
error in console when query where 1=1
I don't want to highlights the features on map when application load, how do I disable that, I just like to load layers info in attribute table by default bottom panes hide and proper display of widget
tmcgee commented
@mayur9785 Hard to say what the issue is since it most likely relates to the data returned from querying the server.
You can use the featureOptions
documented here to not show features on the map, not select, not highlight.
If you don't want the features highlighted on the map but you still want the user to zoom to the features when clicked on the grid, you can change the symbology so it is transparent.