Oracle® Fusion Middleware Idoc Script Reference Guide 11g Release 1 (11.1.1) E10726-01 |
|
Previous |
Next |
Home > Idoc Script Reference Guide > Management and Configuratio... > rsMakeFromList
Creates a single-column ResultSet from an option list.
Type and Usage
Parameters
Takes two required parameters and one optional parameter:
The first parameter is the name of the ResultSet to be created.
The second parameter is the name of an existing option list (for example, docAccounts or xMyCustomField.options).
The third optional parameter is the name of the ResultSet column. If no value is specified, the column name defaults to row.
Output
Creates a ResultSet with one column, populated by the values in the specified option list.
Example
Creates two ResultSets called ListA and ListB from the securityGroups and docAuthors option lists:
<$lista = "securityGroups"$> <$rsMakeFromList("ListA", lista)$> <$rsMakeFromList("ListB", "docAuthors", "name")$> <table border=2> <tr><td>Security Groups</td><td>Authors</td></tr> <tr> <td><$loop ListA$><$row$><br> <$endloop$></td> <td><$loop ListB$><$name$><br> <$endloop$></td> </tr> </table>
The ResultSets would look like the following.
@ResultSet ListA 1 row Public Secure @end @ResultSet ListB 1 name hchang pkelly sysadmin user1 @end
The resulting HTML would look like the following.
ListA | ListB |
---|---|
Security Groups | Authors |
hchang | |
Public | okelly |
Secure | sysadmin |
user1 |
See Also