Changes between Version 19 and Version 20 of S3/S3Report


Ignore:
Timestamp:
11/29/12 14:14:32 (9 years ago)
Author:
Dominic König
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • S3/S3Report

    v19 v20  
    7979        rows=report_fields,
    8080        cols=report_fields,
    81         facts=report_fields,
     81        fact=report_fields,
    8282        defaults=Storage(
    8383                rows="project_id",
     
    9999All items in `report_options` and `defaults` are optional.
    100100
     101If fact and methods are configured like:
     102
     103{{{#!python
     104   report_options = Storage(
     105       fact = [field1, field2, field3],
     106       methods = [method1, method2],
     107       ...
     108   )
     109}}}
     110
     111then S3Report will automatically provide a selection of all (mathematically) meaningful field-method-combinations. Some of these combinations may not be relevant for the use-case, though. To specify field-method-combinations instead, you can configure it like:
     112
     113{{{#!python
     114   report_options = Storage(
     115       fact = [
     116               (field1, method1),
     117               (field2, method1),
     118               (field2, method2),
     119               (field3, method1),
     120              ],
     121       ...
     122   )
     123}}}
     124
     125Optionally, you can define a custom label for each combination (which will be used in the select list):
     126
     127{{{#!python
     128   report_options = Storage(
     129       fact = [
     130               (field1, method1, T("My Report A")),
     131               (field2, method1, T("My Report B")),
     132               (field2, method2, T("My Report C")),
     133               (field3, method1, T("My Report D")),
     134              ],
     135       ...
     136   )
     137}}}
     138
    101139== Further Development ==
    102140