Welcome Guest! Log in
Stambia versions 2.x, 3.x, S17, S18, S19 and S20 are reaching End of Support January, 15th, 2024. Please consider upgrading to the supported Semarchy xDI versions. See Global Policy Support and the Semarchy Documentation.

The Stambia User Community is moving to Semarchy! All the applicable resources have already been moved or are currently being moved to their new location. Read more…


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}:)