Changes between Version 27 and Version 28 of S3XRC/ResourceReport


Ignore:
Timestamp:
08/28/10 19:59:05 (14 years ago)
Author:
Dominic König
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • S3XRC/ResourceReport

    v27 v28  
    1010You have a module {{{xxx}}} and within it a resource {{{yyy}}}, which has a number of components. You're providing CRUD functions for the resource and its components using {{{shn_rest_controller()}}}.
    1111
    12 Now you want to provide a reporting function for this resource, where the user can specify report parameters in a form and then get the summary report auto-generated.
    13 
    14   ''Our example: Your resource contains a "timestmp" field (type datetime) and a field "cost" (type double), and now the user shall select a time interval in aform, and your report function shall provide the sum of all "cost" for those records with a timestmp within the selected time interval.''
     12Now you want to provide a reporting function for this resource, where the user can specify report parameters in a form and then get the summary report auto-generated:
     13
     14  ''Our example: Your resource contains a "timestmp" field (type datetime) and a field "cost" (type double), and in your reporting function the user shall be able to select a time interval, and get a report of the sum of all "cost"s within the selected time interval auto-generated.''
    1515
    1616This tutorial shows you how this can be integrated in the REST interface of your resource.