Announcement

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

    SelectItem add setDisplayFieldFunction?

    Provide the following?

    Code:
    SelectItem.setDisplayFieldFunction(new DisplayFieldFunction(){
    
          public String display(Record record){
                 return record.getAttribute("type")+" "+record.getAttribute("name");
           }
    
    });
    
    SelectItem.setValueFieldFunction(new ValueFieldFunction(){
    
          public String value(Record record){
                 return record.getAttribute("type")+"_"+record.getAttribute("id");
           }
    
    });

    #2
    Could you elaborate?

    Comment


      #3
      I'd like to be in the list is formatted output option.
      Attached Files

      Comment


        #4
        For multi-column selects, use SelectItem.setPickListFields().

        Comment


          #5
          option css effect

          Code:
          if(record.getAttribute("type").equals("admin")){
            return "<span> <font color='red'>"+record.getAttribute("type")+"</font> </span>";
          }else if(...){
            return ...;
          }

          Comment

          Working...
          X