08-26-2019 10:24 AM
Hello,
i am using the below statement to change the step name in subsequence. under pre expressions :
Step.name = RunState.SequenceFile.Data.Seq["MainSequence"].Main[Step.UniqueStepId].name + " [Channel: " + Locals.currentChannel + " | Iteration:" + Str(Locals.i) + "]"
I can able to execute the abouve statement in main sequence but not in subsequence. does anyone know how to change the step name of subsequence programmatically.
Thanks,
swathi kamble
Solved! Go to Solution.
08-27-2019 04:02 AM
Locals of Main sequence cannot be used in Sub Sequence (Local Variables are used within a sequence not between sequences.make sure you are suing parameters if you need to share data between Sequences.
08-27-2019 04:24 AM
Hello, Thanks for the reply. I used the file global to pass data between the sequence but still i am getting the error ( refer to the attached screen shot).
08-27-2019 07:15 AM
Hello Swasa
If Possible Share the Sequence Which you have created.so that we can view and suggest you the right approach.
08-27-2019 10:52 AM
Hello,
In the main sequence i am calling call 4 up sub sequence, attached screenshot, In cal 4up seq on the 1 st step, i wanted to change the step name based on the for loop.
08-27-2019 01:08 PM
Step.Name = RunState.SequenceFile.Data.Seq[RunState.Sequence.Name].Main[Step.UniqueStepId].Name + " [Channel: " + FileGlobals.currentChannel + " | Iteration:" + Str(FileGlobals.i) + "]"
Hope this helps,
08-28-2019 03:49 AM
Thank you!! It worked 🙂