rsCreateReference

This function sets an Idoc Script variable with a shared reference to a pre-existing result set in the request data.

Type and Usage

Parameters

This function has the following parameters:

Parameters Description
sourceResultSet The name of a pre-existing result set.
targetResultSet The name of the variable that will share a reference to precisely the same result set.

Output

If successful, returns True.

Example

The current value of <$MyResultSet.field2$> and <$MyResultSetAlias.field2$> will both be the letter E.

<$rsCreateResultSet("MyResultSet", "field1,field2,field3")$><$rsAppendRowValues("MyResultSet", "A,B,C,D,E,F")$><$rsCreateReference("MyResultSet", "MyResultSetAlias")$><$rsNext("MyResultSetAlias")$>