Announcement

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

    Preventing ComboBoxItem pick list search for empty value

    SmartClient version: v12.0p_2019-06-12/LGPL Deployment
    Browser: Chrome Version 108.0.5359.98 (Official Build) (x86_64)

    I am using the minimumSearchLength attribute for data-bound combo box form items. It works when the combo box has a value. However, I would like to prevent searching if the user clicks the show pick list icon when there is no value in the combo box. Is there a way to do this?

    #2
    Hi!
    We are not seeing this behavior in the current version of SmartClient.
    The latest stable branch of SmartClient is 13.0 of course but we're not seeing the behavior you describe in the most recent 12.0 build either
    You can try this here:

    https://www-demos.smartclient.com/sm...boListComboBox

    With the following slightly modified sample code
    Code:
    isc.DynamicForm.create({
        width: 500,
        numCols: 4,
        isGroup: true,
        groupTitle: "List - ComboBox",
        wrapItemTitles: false,
        fields : [{
            name: "bugStatus", title: "Bug Status",
            editorType: "ComboBoxItem",
            valueMap : {
                "new" : "New",
                "active" : "Active",
                "revisit" : "Revisit",
                "fixed" : "Fixed",
                "delivered" : "Delivered",
                "resolved" : "Resolved",
                "reopened" : "Reopened"
            }
        },{
            name: "itemName", title: "Item Name", editorType: "ComboBoxItem",
            optionDataSource: "supplyItem", pickListWidth: 250, minimumSearchLength:3
        }]
    });
    This looks like it may be an issue that has been resolved since the build you're using (2019-06-12)

    Can you try the latest nightly build and let us know if the problem persists for you?

    Thanks
    Isomorphic Software

    Comment


      #3
      Hi Isomorphic,

      I can't see the issue the OP is describing with clicking the arrow and less than three characters in the textbox, but I can see it when using Alt-Down in v12.0p_2022-12-02 and the code from your testcase.

      Best regards
      Blama

      Comment


        #4
        I downloaded and installed the latest version 12 build and it worked. So it was an issue that has been resolved.

        However, as Blama mentioned, comboboxes searches can be executed without the number of characters specified in minimumSearchLength when using the Alt-Down keyboard shortcut.

        Thank you for your assistance.

        Comment


          #5
          Thanks for letting us know. We see the issue and have a developer taking a look.
          We'll follow up when we have more information for you.

          Regards
          Isomorphic Software

          Comment


            #6
            Hi - sorry for the long silence here.
            This issue has been resolved (for a while) on the 13.1d branch.
            We've now ported the fix back to 13.0, 12.1 and 12.0 - please try the next nightly build dated Jan 14 2023 or above

            Regards
            Isomorphic Software

            Comment

            Working...
            X