Announcement

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

    FieldPicker: canFilter: true for sample value?

    I'm playing with your FieldPicker, and I think it'll work to address a particular kind of dataset I have. In this situation, I have 100s of fields, and I'd like to help users pick which ones they want to view. I don't want to use your typical sample values, I'd rather show users a text based description of each field, so I've done this:

    Code:
    useAdvancedFieldPicker: true,
    advancedFieldPickerThreshold: 0,
    fieldPickerShowSampleValues: true,
    fieldPickerWindowProperties: {
        fieldPickerProperties: {
            sampleValueTitle:"Description",
            sampleRecord:fieldDescriptions
        }
    },
    which works well... except I'd like to be able to filter the sample value ("Description" in my example) column too. That is, I want to change canFilter to true in this code:



    Code:
            if (!available || this.showAvailableSampleValue) {
                fields.add({
                    name: this.sampleValueField,
                    title: this.sampleValueTitle,
                    canFilter: true,
                    canEdit: false,
                    type: "any"
                });
                auto = true;
            }

    I could accomplish this by editing ISC_Grids.js, but I'm wondering if there's a supported method for this (or could you add one)?

    #2
    We've added a new property, FieldPicker.canFilterSampleValue, to enable the behavior you requested, in SC 11.1p and newer branches. It will be in the nightly builds dated 2017-11-07 and beyond.

    Comment


      #3
      Thanks!

      Comment

      Working...
      X