Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Setting SelectItem using JSON data

    Hi,

    I currently have a form which includes a SelectItem created in the following way:

    Code:
    final SelectItem xxxxItem = new SelectItem("xxx", "Xxx Yyy");	 
    themeItem.setMultiple(true);
    themeItem.setMultipleAppearance(MultipleAppearance.PICKLIST);
    I am populating my form with data sent in JSON format. But I am unable to set the SelectItem when the value is more than one checkbox. If the value is a single value, it will set correctly, but if the value is multiple values, it does not set the value correctly.

    What is the format of the value for setting a SelectItem? In particular when the SelectItem has multiple values.

    Any help would be greatly appreciated!

    - Justin

    #2
    I am also not able to set values back to select item with multiple true.

    Also, is there any functionality which will have one more option as "ALL", by clicking which all other options get selected, as it is done in listgrid selection.

    Comment


      #3
      In SmartClient, the value is set as an Array of Strings. If you're having trouble, show your code.

      For a select all button, the best approach is probably an external button rather than trying to place an "All" option inside the select.

      Comment

      Working...
      X