MGMapLayer.setSQLWhere   Go to object model Go to parent topic Go to previous topic Go to next topic

Syntax

void setSQLWhere(String whereClause)

Description

Sets the SQL Where clause for the layer.

This method automatically sets the layer's rebuild flag to True. See setRebuild for details.

This method is functionally equivalent to the MGDatabaseSetup setWhereClause method.

Note that this method does not work during a busy state. For additional information about the busy state, refer to "Handling Busy State and Map Refresh" in the Autodesk MapGuide Developer's Guide. Also note that in some cases, a very long SQL Where clause will cause a data request error.

Parameters

whereClause - The new SQL Where clause to be used by the layer to retrieve dynamic data.

Error Codes

-1 (busy)

See Also

getSQLWhere, SQLWhere