Malchore Absent Member.
Absent Member.
560 views

How to get a Selection List (from system configuration) from user input

Hello all,

 

I have a flow that needs to get a list of hostnames. Usually, our flows use a Selection List in order to get our server list, and then we iterate over that list. However we are creating a flow where the server inventory list needs to be a parameter we get from user input. (We toss up a message asking the user to enter the name of an existing Selection List in our system configuration.)

 

I can't figure this out. I'm sure it'll involve a custom Scriptlet. However I can't seem to find any documentation about writting Scriptlets in HP OO. I know it's Javascript, but I can't find documentation for HP OO specifically. Anyone know of such a document?

 

What I'd like to do is...

 

myData = scriptletContext.getGlobal(String_From_User_Input) and have myData be the entire Selection List. But apparently there is no getGlobal function in com.hp.oo.execution.scriptlet.ScriptletContext

Labels (1)
0 Likes
2 Replies
Walt Trusted Contributor.
Trusted Contributor.

Re: How to get a Selection List (from system configuration) from user input

Save the user input in a result variable (ex:myData)

 

myData = scriptletContext.get(myData);

0 Likes
Malchore Absent Member.
Absent Member.

Re: How to get a Selection List (from system configuration) from user input

I can't believe it's that simple! Thank you a million.

 

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.