Announcement

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

    FilterBuilder dynamic editor field

    In the below filter builder:

    Click image for larger version

Name:	FilterEditor.PNG
Views:	174
Size:	7.1 KB
ID:	253205

    What I am trying to do is if "contains pattern" is selected, the editor to the right of it is a SelectItem (as it is now) to select from a list of pre-defined patterns.
    But if "contains (exact case)", I want to change the editor to the right of it from a SelectItem to a TextItem.

    Is this possible?
    I see that when OperatorID EQUALS_FIELD is used, this automatically happens with field names. Is this internal mechanism exposed somehow to achieve similar functionality?

    #2
    You can use an override of getValueFieldProperties() to return different types of FormItem based on the operatorId and fieldName.

    Comment

    Working...
    X