ICEfaces
  1. ICEfaces
  2. ICE-7678

Add Find feature to ice:dataTable

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: EE-1.8.2.GA_P03
    • Fix Version/s: 3.0, EE-1.8.2.GA_P04
    • Labels:
      None
    • Environment:
      ICEfaces 3, ice:dataTable component
    • Assignee Priority:
      P2
    • Affects:
      Documentation (User Guide, Ref. Guide, etc.), Sample App./Tutorial

      Description

      It would be a useful addition to the ice:dataTable component if application developers could implement a Find function that would search for a matching substring within a set of specified columns to include in the search. Upon finding the first match, the dataTable would navigate to ensure that row was visible on the screen, and use an effect to highlight the matching row.

      It would be the responsibility of the application to provide the search string and trigger the find operation via new APIs on the dataTable component. This approach provides the maximum flexibility for applications in terms of how the find text is acquired from the user, etc.


      In order to provide a Search/Find capability to the ace:dataTable, we need to add new component APIs as described below:


      double findRow(String str, Array columns, double startRow)

      The findRow API will accept a String argument ("str") to locate within the specified dataTable "columns". An optional startRow argument can be specified to begin searching at a specific row number (this enables a "Find Next" type functionality). The return value for this API is the first row number that has a column string value that matches the str argument value anywhere in the string. If no match is found, -1 is returned.

      Also might make sense to make the actual match condition a config. parameter in the findRow api. Possible settings would be Anywhere in String, StartsWith, endsWith.


      void navigateToRow( double row, EffectQueue highlightEffect)

      The navigateToRow API will accept a row number to navigate the datatable to such that the specified row number is made visible in the datatable, either via pagination to the page that contains the specified row, or via scrolling a scrollable datatable until the specified row is within the visible region on the page. An optional highlightEffect type may be specified that will be applied to the row once it is visible to draw the user's attention to the row.

        Activity

        Ken Fyten created issue -
        Ken Fyten made changes -
        Field Original Value New Value
        Salesforce Case []
        Affects [Documentation (User Guide, Ref. Guide, etc.)]
        Assignee Priority P2
        Description API Development: Senior ICEsoft Component Developers will spend approximately 30 hrs, extending the API of the existing ice:datatable component in ICEfaces EE 1.8.2 patch 3 to accommodate the following features:

        double findRow(String str, Array columns, double startRow) - The findRow API will accept a String argument ("str") to locate within the specified dataTable "columns". An optional startRow argument can be specified to begin searching at a specific row number (this enables a "Find Next" type functionality). The return value for this API is the first row number that has a column string value that matches the str argument value anywhere in the string. If no match is found, -1 is returned.
        void navigateToRow( double row, EffectQueue highlightEffect) - The navigateToRow API will accept a row number to navigate the datatable to such that the specified row number is made visible in the datatable, either via pagination to the page that contains the specified row, or via scrolling a scrollable datatable until the specified row is within the visible region on the page. An optional highlightEffect type may be specified that will be applied to the row once it is visible to draw the user's attention to the row.
        It would be a useful addition to the ace:dataTable component if application developers could implement a Find function that would search for a matching substring within a set of specified columns to include in the search. Upon finding the first match, the dataTable would navigate to ensure that row was visible on the screen, and use an effect to highlight the matching row.

        It would be the responsibility of the application to provide the search string and trigger the find operation via new APIs on the dataTable component. This approach provides the maximum flexibility for applications in terms of how the find text is acquired from the user, etc.


        In order to provide a Search/Find capability to the ace:dataTable, we need to add new component APIs as described below:


        double findRow(String str, Array columns, double startRow)

        The findRow API will accept a String argument ("str") to locate within the specified dataTable "columns". An optional startRow argument can be specified to begin searching at a specific row number (this enables a "Find Next" type functionality). The return value for this API is the first row number that has a column string value that matches the str argument value anywhere in the string. If no match is found, -1 is returned.

        Also might make sense to make the actual match condition a config. parameter in the findRow api. Possible settings would be Anywhere in String, StartsWith, endsWith.


        void navigateToRow( double row, EffectQueue highlightEffect)

        The navigateToRow API will accept a row number to navigate the datatable to such that the specified row number is made visible in the datatable, either via pagination to the page that contains the specified row, or via scrolling a scrollable datatable until the specified row is within the visible region on the page. An optional highlightEffect type may be specified that will be applied to the row once it is visible to draw the user's attention to the row.

        Assignee Nils Lundquist [ nils.lundquist ]
        Ken Fyten made changes -
        Salesforce Case []
        Fix Version/s 3.1 [ 10312 ]
        Affects Version/s 3.0 [ 10241 ]
        Affects Version/s 3.1 [ 10312 ]
        Ken Fyten made changes -
        Summary Add Find feature to ace:dataTable API Add Find feature to ice:dataTable
        Environment ICEfaces 3, ace:dataTable component ICEfaces 3, ice:dataTable component
        Salesforce Case []
        Component/s Components [ 10012 ]
        Component/s ACE-Components [ 10050 ]
        Fix Version/s EE-1.8.2.GA_P04 [ 10280 ]
        Fix Version/s 3.0.1 [ 10282 ]
        Fix Version/s 3.1 [ 10312 ]
        Affects Version/s EE-1.8.2.GA_P03 [ 10251 ]
        Affects Version/s 3.0 [ 10241 ]
        Description It would be a useful addition to the ace:dataTable component if application developers could implement a Find function that would search for a matching substring within a set of specified columns to include in the search. Upon finding the first match, the dataTable would navigate to ensure that row was visible on the screen, and use an effect to highlight the matching row.

        It would be the responsibility of the application to provide the search string and trigger the find operation via new APIs on the dataTable component. This approach provides the maximum flexibility for applications in terms of how the find text is acquired from the user, etc.


        In order to provide a Search/Find capability to the ace:dataTable, we need to add new component APIs as described below:


        double findRow(String str, Array columns, double startRow)

        The findRow API will accept a String argument ("str") to locate within the specified dataTable "columns". An optional startRow argument can be specified to begin searching at a specific row number (this enables a "Find Next" type functionality). The return value for this API is the first row number that has a column string value that matches the str argument value anywhere in the string. If no match is found, -1 is returned.

        Also might make sense to make the actual match condition a config. parameter in the findRow api. Possible settings would be Anywhere in String, StartsWith, endsWith.


        void navigateToRow( double row, EffectQueue highlightEffect)

        The navigateToRow API will accept a row number to navigate the datatable to such that the specified row number is made visible in the datatable, either via pagination to the page that contains the specified row, or via scrolling a scrollable datatable until the specified row is within the visible region on the page. An optional highlightEffect type may be specified that will be applied to the row once it is visible to draw the user's attention to the row.

        It would be a useful addition to the ice:dataTable component if application developers could implement a Find function that would search for a matching substring within a set of specified columns to include in the search. Upon finding the first match, the dataTable would navigate to ensure that row was visible on the screen, and use an effect to highlight the matching row.

        It would be the responsibility of the application to provide the search string and trigger the find operation via new APIs on the dataTable component. This approach provides the maximum flexibility for applications in terms of how the find text is acquired from the user, etc.


        In order to provide a Search/Find capability to the ace:dataTable, we need to add new component APIs as described below:


        double findRow(String str, Array columns, double startRow)

        The findRow API will accept a String argument ("str") to locate within the specified dataTable "columns". An optional startRow argument can be specified to begin searching at a specific row number (this enables a "Find Next" type functionality). The return value for this API is the first row number that has a column string value that matches the str argument value anywhere in the string. If no match is found, -1 is returned.

        Also might make sense to make the actual match condition a config. parameter in the findRow api. Possible settings would be Anywhere in String, StartsWith, endsWith.


        void navigateToRow( double row, EffectQueue highlightEffect)

        The navigateToRow API will accept a row number to navigate the datatable to such that the specified row number is made visible in the datatable, either via pagination to the page that contains the specified row, or via scrolling a scrollable datatable until the specified row is within the visible region on the page. An optional highlightEffect type may be specified that will be applied to the row once it is visible to draw the user's attention to the row.

        Nils Lundquist made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Ken Fyten made changes -
        Salesforce Case []
        Component/s ACE-Components [ 10050 ]
        Fix Version/s 3.0 [ 10241 ]
        Fix Version/s 3.0.1 [ 10282 ]
        Affects [Documentation (User Guide, Ref. Guide, etc.)] [Documentation (User Guide, Ref. Guide, etc.), Sample App./Tutorial]
        Ken Fyten made changes -
        Salesforce Case []
        Security Private [ 10001 ]
        Carmen Cristurean made changes -
        Attachment 1.png [ 14020 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Nils Lundquist
            Reporter:
            Ken Fyten
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: