07-12-2005 08:12 AM
07-12-2005 10:29 AM
07-12-2005 10:44 AM
PropertyExists
("RunState.Caller.Locals.PostActionParameter") ? RunState.Caller.Locals.PostActionParameter : "<default value if post action parameter missing>"07-13-2005 03:03 AM
Thanks for looking up the Help File, Ryan.
I will have to re-think my stratedgy.
06-28-2024 02:33 PM
@ryank wrote:
<snip>4. Define a custom step type for these steps and use a substep to call the sequence.Hope that helps,Ryan K.
Here I am 20 years later wondering how to call a sequence from a substep in a custom step type. Oh yeah, you still can't.
07-11-2024 12:49 PM
@motorized_barry wrote:
@ryank wrote:
<snip>4. Define a custom step type for these steps and use a substep to call the sequence.Hope that helps,Ryan K.
Here I am 20 years later wondering how to call a sequence from a substep in a custom step type. Oh yeah, you still can't.
Do this:
// clever way to add variable to the Step container to "pass" it to the Post Action sequence call
// These statements can also be in a Pre or Post Expression (remove the "== 0"); however, putting it in Precondition also makes the updated Step container available to the PreStep call back
Step.AsPropertyObject().SetPropertyObject("Percent", PropOption_ReferToAlias | PropOption_NotOwning | PropOption_InsertIfMissing, Locals.Percent) == 0 &&
RunState.SequenceFile.GetSequenceByName("SubSeq").Parameters.SetPropertyObject("Step", PropOption_ReferToAlias | PropOption_NotOwning | PropOption_InsertIfMissing, Step) == 0
You could add whatever property you want to sequence parameters. As I say in the comment, I chose to add to the Step container since it is also readily passed to other callbacks. If you don't need to pass the Step container then remove the first statement and update the second statement for your needs.