| | 62 | |
| | 63 | == Report Options == |
| | 64 | |
| | 65 | Table configurations can contain a `report_options` item, which is a Storage object. This object is used to configure reports and report options form. |
| | 66 | |
| | 67 | The `rows`, `cols`, `facts` and `aggregate` items are lists of available values for the user to select from. |
| | 68 | |
| | 69 | The `defaults` item is a Storage object that contains the default values for the report. It can contain a value for `rows`, `cols`, `fact`, `aggregate` and `totals` (as described in [#URLMethods URL Methods]). |
| | 70 | |
| | 71 | Here is an example of a `report_options` item: |
| | 72 | {{{#!python |
| | 73 | report_options=Storage( |
| | 74 | rows=report_fields, |
| | 75 | cols=report_fields, |
| | 76 | facts=report_fields, |
| | 77 | defaults=Storage( |
| | 78 | rows="project_id", |
| | 79 | cols="name", |
| | 80 | fact="time_actual", |
| | 81 | aggregate="sum", |
| | 82 | totals=True |
| | 83 | ) |
| | 84 | }}} |
| | 85 | |
| | 86 | All items in `report_options` and `defaults` are optional. |
| | 87 | |