Announcement

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

    How to get ComboBoxItem typed-in value

    Hi,

    I am using SmartGWT version 12.1-p20220107
    .
    I have implemented a custom implementation for filtering Combobox items by using setPickListFilterCriteriaFunction. Inside this, I am creating custom criteria. I want to use user typed-in values along with my custom criteria. Is there any way to get that value? I tried using getPickListFilterCriteria, but since its protected it throws error.

    #2
    Hi paggarwal,

    try this:
    Code:
    setPickListFilterCriteriaFunction(new FormItemCriteriaFunction() {
                    @Override
                    public Criteria getCriteria(FormItemFunctionContext itemContext) {
                        String enteredValue = ((ComboBoxItem) itemContext.getFormItem()).getEnteredValue();
    ...
    ...
    Best regards
    Blama

    Comment


      #3
      Thanks a lot. It worked

      Comment

      Working...
      X