Skip Headers
Oracle® Fusion Middleware Idoc Script Reference Guide
11g Release 1 (11.1.1)

Part Number E10726-01
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Index
Index
Go to Master Index
Master Index
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to current chapter
Up
Go to next page
Next
View PDF

ddSetLocalByColumnsFromFirstRow

This function takes the first row of a dynamicdata table and, using the column names as keys, sets a local value for each column and its corresponding value. If there is no first row, then this function does nothing. This can be a useful method for quickly setting a lot of local values. The filterInclude and includeColumns properties of the dynamicdata table are ignored.

Type and Usage

Parameters

This function has one parameter, dataTableName, which is the name of the dynamicdata table to load.

Output

If the dynamicdata table was successfully loaded, it returns True.

Example

<@dynamicdata MyDataTable@>fieldA, fieldB, fieldCfoo,    bar,    baz<@end@>


<$exec ddSetLocalByColumnsFromFirstRow("MyDataTable")$><$tmpStr1 = #local.fieldA$>   [[% (tmpStr1 == 'foo') %]]<$tmpStr2 = #local.fieldC$>   [[% (tmpStr2 == 'baz') %]]

See Also