Announcement

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

    comboBox with tree doesn't show displayField

    SmartClient Version: SNAPSHOT_v13.0d_2021-10-28/AllModules Development Only (built 2021-10-28)
    and
    SmartClient Version: v12.1p_2021-10-28/AllModules Development Only (built 2021-10-28)

    Chrome on MacOS

    Hello, please modify the sample 'initialData' like this:

    Code:
    isc.DynamicForm.create({
        ID: "fooForm",
        fields: [
            {
                name: "ReportsTo",
                editorType: "ComboBoxItem",
                cachePickListResults: false,
                addUnknownValues: false,
                textMatchStyle: "substring",
                optionDataSource: "employees",
                sortField: "Name",
                pickListFields: [{name: "Name"}],
                displayField: "Name",
                valueField: "EmployeeId",
                dataSetType: "tree",
                pickListProperties: {
                    treeField: "ReportsTo",
                    loadDataOnDemand: false
                }
            }
        ]
    })
    then, open the pickList or type to search and select an employee.
    I was expecting to see the Name (displayField) in the ComboCoxItem, but I see the EmployeeId. Is it a bug, or am I missing something?

    #2
    Thanks for the notification and clear test case. We are reproducing the problem and have a developer assigned to take a look. We'll follow up when we have more information for you

    Regards
    Isomorphic Software

    Comment


      #3
      This has been fixed in both ComboBoxItem and SelectItem for builds dated November 5.

      The dropdownTree sample in the Showcase has also been altered, so it correctly sets both valueField and displayField.

      Comment


        #4
        Thanks, I see it fixed in 13.0, but the latest 12.1 available is from 2021-11-02

        Comment


          #5
          SmartClient Version: v12.1p_2021-11-10/AllModules Development Only (built 2021-11-10)

          I see it fixed in 12.1 also, thank you very much

          Comment

          Working...
          X