A SERVICE OF

logo

162 | Chapter 9 Enhanced Layer Functionality API Additions
Parameters
none
Returns
MGCollection – A list of strings representing the post-SQL statements that
are applied to the query.
Error Codes
-5 (Security Violation)
-15 (Does not apply)
See Also
addPostSQLStatement, clearPostSQLStatements
addPostSQLStatement Method
Syntax
boolean addPostSQLStatement(String sql)
Description
Adds the specified SQL statement to the end of the list of post-SQL state-
ments that is applied to the layer.
Post-SQL statements are executed after Autodesk MapGuide performs a
spatial query. You can use them to further customize your query results. For
more information about applying post-SQL statements to queries, see “Using
SQL Pass-Through Statements” on page 55.
Parameters
sql – String representing the SQL statement to add to the end of the list.
Returns
boolean – Specifies whether or not the specified SQL statement was success-
fully added to the end of the post-SQL statement list.