Autodesk 15607-010000-5000A Manuale Utente

Pagina di 180
MGMapLayerSetup Object
|
161
Pre-SQL statements are executed before Autodesk MapGuide performs a 
spatial query. You can use them to further customize your query results. For 
more information about applying pre-SQL statements to queries, see “Using 
SQL Pass-Through Statements” on page 55.
Parameters
None
Returns
boolean – Specifies whether or not the list of pre-SQL statements has been 
successfully cleared.
True – Indicates that the list of pre-SQL statement was successfully cleared.
False – Indicates that the list of SQL statement was not cleared.
Error Codes
-1 (Busy)
-5 (Security Violation)
-15 (Does not apply)
See Also
getPreSQLStatements, addPreSQLStatement
getPostSQLStatements Method
Syntax
MGCollection getPostSQLStatements()
Description
Gets the list of post-SQL statements 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.