Autodesk 15607-010000-5000A Manuale Utente

Pagina di 180
MGMapLayerSetup Object
|
159
See Also
getClipEnabled
getPreSQLStatements Method
Syntax
MGCollection getPreSQLStatements()
Description
Gets the pre-SQL statements that are applied to the layer. 
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
MGCollection – A list of strings representing the pre-SQL statements that are 
applied to the query.
Error Codes
-5 (Security Violation)
-15 (Does not apply)
See Also
addPreSQLStatement, clearPreSQLStatements
addPreSQLStatement Method
Syntax
boolean addPreSQLStatement(String sql)