whereClause property

String whereClause

A SQL expression that defines which features are rendered.

The where clause string that is used as the DisplayFilter.whereClause should follow standard SQL syntax similar to what is discussed in the document SQL reference for query expressions used in ArcGIS.

A where clause that is not valid for the data may result in no features being drawn when this display filter is applied either by ManualDisplayFilterDefinition.activeFilter or by ScaleRangeDisplayFilter.maxScale. Check the layer's LayerViewState for a LayerViewStatus.warning; if there is one, then there might be a LayerViewState.error describing that the display filter's where clause is not valid.

Implementation

String get whereClause {
  final stringHandle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_DisplayFilter_getWhereClause(_handle, errorHandler);
  });
  return stringHandle.toDartString();
}
void whereClause=(String value)

Implementation

set whereClause(String value) {
  final coreValue = _CString(value);
  _withThrowingErrorHandler((errorHandler) {
    runtimecore.RT_DisplayFilter_setWhereClause(
        _handle, coreValue.bytes, errorHandler);
  });
}