123 | | fact = [field1, field2, field3], |
124 | | methods = [method1, method2], |
| 123 | fact = [selector1, selector2, selector3], |
| 124 | methods = [method1, method2], # methods can be omitted, falls back to a list of all supported methods |
148 | | (field1, method1, T("My Report A")), |
149 | | (field2, method1, T("My Report B")), |
150 | | (field2, method2, T("My Report C")), |
151 | | (field3, method1, T("My Report D")), |
152 | | ], |
153 | | ... |
154 | | ) |
155 | | }}} |
156 | | |
157 | | Of course, you can also specify custom labels for the fields where required: |
158 | | |
159 | | {{{#!python |
160 | | report_options = Storage( |
161 | | fact = [ |
162 | | ((T("My Label For Field1"), field1), method1, T("My Report A")), |
163 | | (field2, method1, T("My Report B")), |
164 | | (field2, method2, T("My Report C")), |
165 | | (field3, method1, T("My Report D")), |
| 152 | (T("ReportLabel1"), method(selector1)"), |
| 153 | (T("ReportLabel2"), method(selector2)"), |
| 154 | (T("ReportLabel3"), method(selector3)"), |
| 155 | # Older versions of S3Report used this syntax (no longer supported): |
| 156 | #(field1, method1, T("My Report A")), |
| 157 | #(field2, method1, T("My Report B")), |
| 158 | #(field2, method2, T("My Report C")), |
| 159 | #(field3, method1, T("My Report D")), |