Welcome Guest! Log in
Due to some maintenance operations, stambia.org will be switched to read-only mode during the 13th November. It will be possible to read and download, but impossible to post on the forums or create new accounts. For any question please contact the support team.


Bind links are used to execute a target action for each row of a source SELECT statement.

Image1

If the target action is a scripting action, then you can get the current bind iteration number with the following code:

__ctx__.getCurrentBindIteration()

 

If it is not a scripting action (for example a SQL Operation), you need to use the previous code within a bind-scripting context:

%b(rhino){__ctx__.getCurrentBindIteration();}b%

 

Example in an INSERT statement:

INSERT INTO mytable (C1, C2)
VALUES (%b(rhino){__ctx__.getCurrentBindIteration();}b%, :{COL2}:)