Related Topics |
---|
In Author you can create stored queries with one variable. For more information on stored queries, see Creating stored queries. If you are using image services with the HTML Viewer or viewers using the Web Application Developer Framework (ADF), you can add additional variables. Stored queries with multiple variables will not work correctly in ArcExplorer - Java Edition or the Java Viewers.
<EXTENSION type="StoredQuery"> <STOREDQUERIES > <STOREDQUERY name="Multiple_variables" > <QUERY where="POPULATION > [%var%]" subfields="#SHAPE# NAME CAPITAL PROV_NAME POPULATION" /> <SQVAR position="0" name="[%var%]" > <FIELD name="POPULATION" precision="0" type="-5" size="11" /> <SQVAR /> <STOREDQUERY /> <STOREDQUERIES /> </EXTENSION> |
<EXTENSION type="StoredQuery"> <STOREDQUERIES > <STOREDQUERY name="Multiple_variables" > <QUERY where="(POPULATION > [%var%]) AND (POPULATION < [%var1%])" subfields="#SHAPE# NAME CAPITAL PROV_NAME POPULATION" /> <SQVAR position="0" name="[%var%]" > <FIELD name="POPULATION" precision="0" type="-5" size="11" /> <SQVAR /> <STOREDQUERY /> <STOREDQUERIES /> </EXTENSION> |
<EXTENSION type="StoredQuery"> <STOREDQUERIES > <STOREDQUERY name="Multiple_variables" > <QUERY where="(POPULATION > [%var%]) AND (POPULATION < [%var1%])" subfields="#SHAPE# NAME CAPITAL PROV_NAME POPULATION" /> <SQVAR position="0" name="[%var%]" > <FIELD name="POPULATION" precision="0" type="-5" size="11" /> <SQVAR /> <SQVAR position="1" name="[%var1%]" > <FIELD name="POPULATION" precision="0" type="-5" size="11" /> <SQVAR /> <STOREDQUERY /> <STOREDQUERIES /> </EXTENSION> |
Once you have added new variables to a stored query, you should not open or save your map configuration file in author. Your edits will be removed.