01-02-2009 06:58 PM
I run my sequence in 'Loop on Selected steps using Single Pass". Where do I find the loop index?
Thanks
Rafi
01-04-2009 01:23 AM
Rafi -
We have an open issue 45415 to add API to make this information available in a future release, but the only workarounds that I am aware of are the following:
1) Using step.GetStepSettingsString(), one can retrieve the step setting string displayed in the execution view. After some string manipulations, the user can extract the loop index out off it.
2) If you are executing on the steps in the active context that starts the interactive execution, the following expression also works in simple cases where branching steps are not used:
Round(RunState.NumStepsExecuted/ThisContext.InteractiveContext.InteractiveArgs.NumSteps)