Drop-down-box fuzzy search for exact matching scheme

  • Last update:  2021-10-22
  • I. Overview

    1) Problem description

    At present, the fuzzy query function of the drop-down box widget will be separated to match multiple characters when matching. For example, if you enter ABC, the system matches the data that contains A, B, and C in the same order rather than the data that is connected with ABC. So how to achieve some accurate fuzzy search?

    2) Implementation roadmap

    The database like statement is able to achieve accurate fuzzy search function, it can use the widget data dictionary linkage to achieve the requirements.

    Note: This scheme only supports the drop-down check box, there is no effective scheme for the drop-down check box.

    II. Example

    1. Data preparation

    1) Create a new dataset ds1, and the database query statement is:SELECT * FROM Client WHERE CustomerID like '%${abc}%',as shown below:

    1.jpg

    2) Create a new dataset ds2, and the database query statement is:SELECT * FROM Client,as shown below:

    2.jpg


    2. Report design

    1) Drag two label widgets and two drop-down box widgets into the parameter panel, and set the name of the first drop-down box widget to abc, the name of the first label widget to Fuzzy query result, and the name of the second drop-down box widget to Fuzzy query results are contained in the drop-down list box, as shown below:

    3.jpg

    2) The drop-down box data dictionary is set to ds1 and ds2 respectively, and the actual value and display value are bound to the customer ID field, as shown below:

    3) All widgets in the drop-down box are checked to Allow Edit, as shown below:

    6.jpg


    3. Effect preview

    1) PC

    Save the report, click Pagination Preview, type BL in the first drop-down box widget and the query results are BLAUS, BLONP.Enter BL in the second drop-down box widget,and the query results are BLAUS, BLONP, BOLID, as shown below:

    gif1.gif

    2) Mobile 

    The end effect of App and HTML5 is the same, as shown below:

    gif2.gif

    III. Download the template

    See: %FR_HOME%\webroot\WEB-INF\reportlets\doc-EN\Parameter\Drop-down-box_fuzzy_search_for_exact_matching_scheme.cpt

    Click to download thetemplate: 

    Drop-down-box_fuzzy_search_for_exact_matching_scheme.cpt



    Attachment List


    Theme: Parameter
    Already the First
    • Helpful
    • Not helpful
    • Only read

    滑鼠選中內容,快速回饋問題

    滑鼠選中存在疑惑的內容,即可快速回饋問題,我們將會跟進處理。

    不再提示

    10s後關閉

    Get
    Help
    Online Support
    Professional technical support is provided to quickly help you solve problems.
    Online support is available from 9:00-12:00 and 13:30-17:30 on weekdays.
    Page Feedback
    You can provide suggestions and feedback for the current web page.
    Pre-Sales Consultation
    Business Consultation
    Business: international@fanruan.com
    Support: support@fanruan.com
    Page Feedback
    *Problem Type
    Cannot be empty
    Problem Description
    0/1000
    Cannot be empty

    Submitted successfully

    Network busy