Shuffle an Array in a Sequence
Convertigo Public Knowledge base
Shuffle an Array in a Sequence
How to get a unique random filename from a Directory List Step?
Use a jsonSource Step whose source is directly the List Directory Step output, or, like in the sample project, from a filtered copy (only “.txt“ extension file), this will create a Javascript array named jfiles (Variable name property defined in the Step) into the JS scope of the Sequence. Then a SequenceJS Step is added to pick up a random file name from the Array (Get a random item from a JavaScript array ). Finally, a jElement Step will output the file name at the end of the Sequence execution.
, multiple selections available,
Related content
Execute a sub Sequence asynchronously
Execute a sub Sequence asynchronously
More like this
Use multi-valued variables in Sequence
Use multi-valued variables in Sequence
More like this
Call a sequence automatically when the application is starting and not using an onclick button
Call a sequence automatically when the application is starting and not using an onclick button
More like this
How to pass data parameters to a Sequence on onSubmit event of a form?
How to pass data parameters to a Sequence on onSubmit event of a form?
More like this
How to use automatic Form Inputs generation from a Back End Sequence?
How to use automatic Form Inputs generation from a Back End Sequence?
More like this
How to address a step variable in JS expression?
How to address a step variable in JS expression?
More like this
(c) Convertigo 2023 https://www.convertigo.com