Uploaded image for project: 'Apache Fineract'
  1. Apache Fineract
  2. FINERACT-1910

Data Table query - Advanced

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Critical
    • Resolution: Done
    • None
    • 1.9.0
    • Data Tables

    Description

      Background

      FINERACT-1747

      Goal

      Have the querying possibilities - that have been developed with FINERACT-1747 - extended with the following features:

      • pagination - similarly to several Fineract API endpoints
      • sorting based on given attribute
      • filter for closed (greather-than-or-equal, less-than-or-equal) interval in case of the following typed fields:
        • date
        • date and time
        • number
        • decimal
        • string/text that can be parsed to numeric
      • contains search in string and text fields
      • exact match for string and text fields

      The filtering parameters should be applied with "AND" relation.

      Solution Concept

      Have the solution concept aligned between

      If multiple columns would be used as column filter, it is advisable not to put this number of query parameters in the url, but in the body, like graphql. With this, a request would look like:

      URL

      GET url/datatables/dataTableId/query?resultColumns=column3,column6,column4&offset=0&limit=10&sortOrder=desc&orderBy=transaction_date

      Body

      See the attached dataTableAdvancedFilteringExample.txt.

      The filtering parameters should be applied with "AND" relation.

       

      <Solution Concept to be extended by developers>

      Attachments

        1. dataTableAdvancedFilteringExample.txt
          1 kB
          Peter Santa
        2. image-2023-08-02-12-21-56-564.png
          129 kB
          Peter Santa
        3. image-2023-08-02-12-22-23-468.png
          182 kB
          Peter Santa
        4. image-2023-08-02-12-22-36-686.png
          41 kB
          Peter Santa

        Issue Links

          Activity

            People

              Unassigned Unassigned
              peter.santa Peter Santa
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: