Portlet Factory, Version 6.1.2


 

Processing the input values of the target list

You can retrieve the values submitted by the List builder by using webAppAccess.getRequestInputs().getInputValues("builder_call_name") equal to a variable of type Iterator. This returns an Iterator object. The following code sample retrieves the values submitted by the List builder and then loops through the Iterator and builds a string. This string is then assigned to a variable which can be used to display the results.

For example:

Iterator i = webAppAccess.getRequestInputs().getInputValues("ListBuilderplaceholder"); String results = ""; while (i.hasNext()) results += i.next(); results += "<br>"; webAppAccess.getVariables().setString("target_list_display", results);

where

  • ListBuilderplaceholder is the span tag assigned to the List builder.

  • results is the variable used to display the results.

  • target_list_display is the variable is used to hold the values at runtime.

Parent topic: List builder


Library | Support |