It is important to know whether your SQL statement will return:
A single result row - between 0 and 1 will only be returned, e.g. from DUAL
Multiple result rows – between 0 and N could be returned, e.g. from ALL_TABLES
Target path must be used when multiple rows are returned from a single run of a query.
<fm:target-path match=”xpath”/>
<fm:db-interface name="dbint-tab">
<fm:query name="qry-tab">
<fm:target-path match="/ROOT/TABLE_LIST/TABLE"/>
<fm:select>
SELECT *
FROM tab
</fm:select>
</fm:query>
</fm:db-interface>
<fm:run-query interface="dbint-tab" query="qry-tab"/>
<fm:db-interface name="dbint-tab">
<fm:query name="qry-tab">
<fm:target-path match="TABLE_LIST/TABLE"/>
<fm:select>
SELECT *
FROM tab
</fm:select>
</fm:query>
</fm:db-interface>
<fm:run-query interface="dbint-tab" query="qry-tab" match=":{theme}"/>
<fm:db-interface name="dbint-web-roles">
<fm:query name="qry-roles-key">
<fm:target-path match="./ROLE_LIST/ROLE"/>
<fm:select>
SELECT
id
, name
, description
FROM appenv.web_roles
WHERE app_id = :key
</fm:select>
<fm:using name="key">:{user}/WO_ID</fm:using>
</fm:query>
</fm:db-interface>
<fm:run-query interface="dbint-web-roles" query="qry-roles-key" match=":{theme}"/>
Please use your XX_EMPLOYEEMODULE (where XX are your initials) file for the following exercises.
Populate the structure /*/EMPLOYEE_LIST/EMPLOYEE in the Data DOM with the ID, Forename, Surname and Hire_date from scott.employee_search where ID is less than 2,000. Run this query in action-change-date.
Change the query to populate the Theme DOM instead.