fm:run-query is used to invoke an SQL statement to retrieve data from the database.
<fm:run-query interface=”dbinterface” query=”query” match="XPath" mode=”string”/>
The Interface and Query attributes are required as they tell FOX which query to use. Match tells FOX what to run the query against. The Mode attribute can be set to “purge-selected”, “purge-all”, “augment” or “add-to” and tells FOX what to do with the retrieved data.
The SQL is a statement defined in fm:query in the DBI with data transformation rules
e.g. <fm:run-query interface="dbint” query="query” match="/A/B/C"/>
Simple run query to fetch some company data
<fm:run-query interface="dbint-s29" query="qry-s29-companies"/>
Query to fetch data into the :{theme} DOM
<fm:run-query interface="dbint-s29" query="qry-s29-tran” match=":{theme}"/>