• Get the Flash Player to see the slideshow.
  • Categories

  • Authors

  • Great Quotes

    It always seems impossible until its done. — Nelson Mandela

Get in touch...

To have a chat about
your CMS needs...

Call us 0207 193 2014
or
Email us on

Getting MultipleSelect values in a Java External

September 23rd, 2008 by Rajendra Shekhawat

It is often useful to setup a “Multi-Select Datum” in a LiveSite component, but how do you write the Java external to receive this array of parameters?

The following code snippet from Raj Shekhawat shows you how:

//LiveSite returns Multiple select values in the form of ArrayList object
//Searchproperties is my parameter name
 ArrayList selectedProperties= (ArrayList) context.getParameters().get("SearchProperties"); 
 
String selectedValues = "";
Iterator propertiesIterator = selectedProperties.iterator();
 while (propertiesIterator.hasNext()) {
             selectedValues += propertiesIterator.next();
}

Leave a Reply

You must be logged in to post a comment.