Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-74956

New Web Service core_reportbuilder_reports_retrieve

    XMLWordPrintable

Details

    • New Feature
    • Status: Development in progress
    • Minor
    • Resolution: Unresolved
    • 4.0.1
    • None
    • MOODLE_400_STABLE
    • WP 4.0 SP7

    Description

      Web Service to retrieve data for a particular report

      Create a new webservice: core_reportbuilder_reports_retrieve($reportid, $page = 0, $perpage = 0)

      Parameters: 

      • reportid (the report id obtained from the previous WS)
      • page current page to display
      • perpage number of rows per page

      Returns:

      The report data, maybe the same as that for custom_report_exporter::get_read_structure(); but without the table rendered (just the structured data to be able to render the report)

      Among the returned information the total number of rows should be returned (for pagination)

      Filters for the report should be applied as same as they are for the web version

      If the user sorted the report in the web version, just apply the same sorting in the WebService so it is consistent

      The web version preferences for the report should be kept in the Web Service response (filters and sorting)

      Attachments

        Issue Links

          Activity

            People

              pholden Paul Holden
              jleyva Juan Leyva
              Carlos Castillo, David Matamoros, Mikel Martín Corrales, Paul Holden, Juan Leyva, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Laurent David, Raquel Ortega, Sara Arjona (@sarjona)
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated: