Hi guys,
I need to pass String list to service through dsp page.
Anybody knows how to collect inputs in string list and pass it to service through dsp.
Hi guys,
I need to pass String list to service through dsp page.
Anybody knows how to collect inputs in string list and pass it to service through dsp.
You can use either checkboxes with same name or a combox with multiple select enabled or hidden variables with same name. When submitted to a flow service you will get a list, like ‘hiddenParamList’ if your variable name in the form is ‘hiddenParam’. If you want to pass list through query string then you can use same param name multiple times like <<http://server:port/invoke/serviceName?param1=a¶m1=b¶m1=c>>
Cheers
Guna
Can you show simple example where we will take inputs through multiple comboboxes or check boxes and pass them to service
<html>
<head>
<title>Submit list data</title>
</head>
<body>
<form name="upload" method="post" action="http://server:port/invoke/rbgunatest.subflows:receiveForm">
<input type="hidden" name="hdn" value="1"/>
<input type="hidden" name="hdn" value="2"/>
<input type="hidden" name="hdn" value="3"/>
<input type="hidden" name="hdn" value="4"/>
<input type="hidden" name="hdn" value="5"/>
Select one or more:<select name="comboBox" multiple>
<option value="1">One</value>
<option value="2">Two</value>
<option value="3">Three</value>
<option value="4">Four</value>
<option value="5">Five</value>
<option value="6">Six</value>
</select><br/><br/>
one<input type="checkbox" name="checkbox" value="1"/>
two<input type="checkbox" name="checkbox" value="2"/>
three<input type="checkbox" name="checkbox" value="3"/>
four<input type="checkbox" name="checkbox" value="4"/>
five<input type="checkbox" name="checkbox" value="5"/> <br/>
<br/><input type="submit" value="Submit">
</form>
</body>
</html>
Just replace your servername, port and service. You will see the incoming results as string lists. Just save pipeline.
Cheers
Guna
Hi,
Thanx for such a great help.
Its working…!