I have created a promptset and placed text box element in it which is a multi line enabled. Now I would like to let the user enter the host names(AGENTS) based on his requirement line by line. After its submission, I want to parse those hostnames(AGENTS) line by line and store them in a static VARA object. I think I need to use string functions to play with the promptset variable.I have no clue how to start this.
Appreciate if you provide me any suggestions or better ideas.
You mean like this?
clear the contents of the target VARA object
Loop through each selected value from the multi-select
- add the value to the target VARA object
Why are you storing these values in a VARA object? Is it so they can drive a FOR EACH workflow? Another choice might be to do the following;
- use activate_uc_object() to launch the desired task
Thanks petwir. The info is very helpful.
Yes, I want to use the VARA object in FOR EACH workflow to activate objects dynamically.
So how should I use multi select option in text box. I understand that we should specify a separator but the users will not enter any special characters to separate. they will just enter all the values line by line. So I think in each line it would end up having spaces. Please correct me if i am assuming wrong.
Also please let me know which script statement should we use to loop the vara values. Can we use string functions or any data sequence statements.