Using Process Prompts
When used in the pre () function, upon execution of the process this function will raise a question to the user executing the process.
Usage
js
script.prompt(messageToUser, variableName, defaultValue);Parameters
messageToUserthe name of the request to the user (who is executing the process).variableNamethe variable within which to store the users response.defaultValuethe default value to prepopulate the prompt with.
Example
js
script.prompt("Current Month", "current_month", "2014 - Jan");Upon executing this process the user will be asked for the Current Month. The value will default to 2014 – Jan and when the process is executed the value the user provided will be stored in a variable called current_month. This variable is a global variable and can be accessed in any of the other functions (or in user created functions).
