Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | <?xml version="1.0" encoding="iso-8859-1" ?> |
2 | ||
3 | <table> | |
4 | <base>CRM/Report</base> | |
0b25329b | 5 | <class>ReportInstance</class> |
6a488035 TO |
6 | <name>civicrm_report_instance</name> |
7 | <comment>Users can save their report instance and put in a cron tab etc.</comment> | |
8 | <add>2.2</add> | |
9 | <field> | |
10 | <name>id</name> | |
c798ac7a | 11 | <title>Report Instance ID</title> |
6a488035 TO |
12 | <type>int unsigned</type> |
13 | <required>true</required> | |
14 | <comment>Report Instance ID</comment> | |
15 | <add>2.2</add> | |
16 | </field> | |
17 | <primaryKey> | |
18 | <name>id</name> | |
19 | <autoincrement>false</autoincrement> | |
20 | </primaryKey> | |
21 | <field> | |
22 | <name>domain_id</name> | |
c798ac7a | 23 | <title>Report Instance Domain ID</title> |
6a488035 | 24 | <type>int unsigned</type> |
c2b4755a EM |
25 | <pseudoconstant> |
26 | <table>civicrm_domain</table> | |
27 | <keyColumn>id</keyColumn> | |
28 | <labelColumn>name</labelColumn> | |
29 | </pseudoconstant> | |
6a488035 | 30 | <required>true</required> |
c2b4755a | 31 | <comment>Which Domain is this instance for</comment> |
6a488035 TO |
32 | <add>3.1</add> |
33 | </field> | |
34 | <foreignKey> | |
35 | <name>domain_id</name> | |
36 | <table>civicrm_domain</table> | |
37 | <key>id</key> | |
38 | <add>3.1</add> | |
39 | </foreignKey> | |
40 | <field> | |
41 | <name>title</name> | |
42 | <title>Report Instance Title</title> | |
43 | <type>varchar</type> | |
44 | <length>255</length> | |
45 | <comment>Report Instance Title.</comment> | |
7a6ecdb4 | 46 | <html> |
47 | <type>Text</type> | |
48 | </html> | |
6a488035 TO |
49 | <add>2.2</add> |
50 | </field> | |
51 | <field> | |
52 | <name>report_id</name> | |
c798ac7a | 53 | <title>Report template ID</title> |
6a488035 TO |
54 | <type>varchar</type> |
55 | <length>64</length> | |
56 | <required>true</required> | |
57 | <comment>FK to civicrm_option_value for the report template</comment> | |
7a6ecdb4 | 58 | <html> |
59 | <type>Select</type> | |
60 | </html> | |
6a488035 TO |
61 | <add>2.2</add> |
62 | </field> | |
63 | <field> | |
64 | <name>name</name> | |
c798ac7a | 65 | <title>Report instance Name</title> |
6a488035 TO |
66 | <type>varchar</type> |
67 | <length>255</length> | |
68 | <comment>when combined with report_id/template uniquely identifies the instance</comment> | |
7a6ecdb4 | 69 | <html> |
70 | <type>Text</type> | |
71 | </html> | |
6a488035 TO |
72 | <add>3.2</add> |
73 | </field> | |
74 | <field> | |
75 | <name>args</name> | |
c798ac7a | 76 | <title>Report Instance Arguments</title> |
6a488035 TO |
77 | <type>varchar</type> |
78 | <length>255</length> | |
79 | <comment>arguments that are passed in the url when invoking the instance</comment> | |
80 | <add>3.2</add> | |
7a6ecdb4 | 81 | <html> |
82 | <type>Text</type> | |
83 | </html> | |
6a488035 TO |
84 | </field> |
85 | <field> | |
86 | <name>description</name> | |
c798ac7a | 87 | <title>Report Instance description</title> |
6a488035 TO |
88 | <type>varchar</type> |
89 | <length>255</length> | |
90 | <comment>Report Instance description.</comment> | |
7a6ecdb4 | 91 | <html> |
92 | <type>Text</type> | |
93 | </html> | |
6a488035 TO |
94 | <add>2.2</add> |
95 | </field> | |
96 | <field> | |
97 | <name>permission</name> | |
c798ac7a | 98 | <title>Report Instance Permissions</title> |
6a488035 TO |
99 | <type>varchar</type> |
100 | <length>255</length> | |
101 | <comment>permission required to be able to run this instance</comment> | |
7a6ecdb4 | 102 | <html> |
103 | <type>Text</type> | |
104 | </html> | |
6a488035 TO |
105 | <add>2.2</add> |
106 | </field> | |
107 | <field> | |
108 | <name>grouprole</name> | |
c798ac7a | 109 | <title>Report Instance Assigned to Roles</title> |
6a488035 TO |
110 | <type>varchar</type> |
111 | <length>1024</length> | |
112 | <comment>role required to be able to run this instance</comment> | |
113 | <add>4.1</add> | |
7a6ecdb4 | 114 | <html> |
115 | <type>Text</type> | |
116 | </html> | |
6a488035 TO |
117 | </field> |
118 | <field> | |
119 | <name>form_values</name> | |
120 | <title>Submitted Form Values</title> | |
121 | <type>text</type> | |
122 | <import>true</import> | |
123 | <comment>Submitted form values for this report</comment> | |
124 | <add>2.2</add> | |
125 | </field> | |
126 | <field> | |
127 | <name>is_active</name> | |
c798ac7a | 128 | <title>Report Instance is Active</title> |
6a488035 TO |
129 | <type>boolean</type> |
130 | <comment>Is this entry active?</comment> | |
7a6ecdb4 | 131 | <html> |
132 | <type>CheckBox</type> | |
133 | </html> | |
6a488035 TO |
134 | <add>2.2</add> |
135 | </field> | |
136 | <field> | |
137 | <name>email_subject</name> | |
c798ac7a | 138 | <title>Report Instance email Subject</title> |
6a488035 TO |
139 | <type>varchar</type> |
140 | <length>255</length> | |
141 | <comment>Subject of email</comment> | |
7a6ecdb4 | 142 | <html> |
143 | <type>Text</type> | |
144 | </html> | |
6a488035 | 145 | </field> |
c798ac7a | 146 | <field> |
147 | <name>email_to</name> | |
148 | <title>Email Report Instance To</title> | |
149 | <type>text</type> | |
6a488035 | 150 | <comment>comma-separated list of email addresses to send the report to</comment> |
7a6ecdb4 | 151 | <html> |
152 | <type>Text</type> | |
153 | </html> | |
c798ac7a | 154 | <add>2.2</add> |
6a488035 | 155 | </field> |
c798ac7a | 156 | <field> |
157 | <name>email_cc</name> | |
158 | <title>cc Email Report Instance To</title> | |
159 | <type>text</type> | |
6a488035 | 160 | <comment>comma-separated list of email addresses to send the report to</comment> |
7a6ecdb4 | 161 | <html> |
162 | <type>Text</type> | |
163 | </html> | |
c798ac7a | 164 | <add>2.2</add> |
6a488035 | 165 | </field> |
c798ac7a | 166 | <field> |
167 | <name>header</name> | |
168 | <title>Report Instance Header</title> | |
169 | <type>text</type> | |
6a488035 | 170 | <comment>comma-separated list of email addresses to send the report to</comment> |
7deea513 | 171 | <html> |
172 | <type>TextArea</type> | |
817807ab | 173 | <rows>4</rows> |
174 | <cols>60</cols> | |
7deea513 | 175 | </html> |
c798ac7a | 176 | <add>2.2</add> |
6a488035 | 177 | </field> |
c798ac7a | 178 | <field> |
179 | <name>footer</name> | |
180 | <title>Report Instance Footer</title> | |
181 | <type>text</type> | |
6a488035 | 182 | <comment>comma-separated list of email addresses to send the report to</comment> |
7deea513 | 183 | <html> |
184 | <type>TextArea</type> | |
817807ab | 185 | <rows>4</rows> |
186 | <cols>60</cols> | |
7deea513 | 187 | </html> |
c798ac7a | 188 | <add>2.2</add> |
6a488035 | 189 | </field> |
c798ac7a | 190 | <field> |
191 | <name>navigation_id</name> | |
6a488035 | 192 | <title>Navigation ID</title> |
c798ac7a | 193 | <type>int unsigned</type> |
6a488035 | 194 | <import>true</import> |
c798ac7a | 195 | <comment>FK to navigation ID</comment> |
196 | <add>3.0</add> | |
197 | </field> | |
198 | <foreignKey> | |
199 | <name>navigation_id</name> | |
6a488035 | 200 | <table>civicrm_navigation</table> |
c798ac7a | 201 | <key>id</key> |
202 | <add>3.0</add> | |
6a488035 | 203 | <onDelete>SET NULL</onDelete> |
c798ac7a | 204 | </foreignKey> |
205 | <field> | |
206 | <name>drilldown_id</name> | |
6a488035 | 207 | <title>Drilldown Report ID</title> |
c798ac7a | 208 | <type>int unsigned</type> |
6a488035 | 209 | <import>true</import> |
c798ac7a | 210 | <comment>FK to instance ID drilldown to</comment> |
211 | <add>4.3</add> | |
212 | </field> | |
213 | <foreignKey> | |
214 | <name>drilldown_id</name> | |
6a488035 | 215 | <table>civicrm_report_instance</table> |
c798ac7a | 216 | <key>id</key> |
217 | <add>4.3</add> | |
6a488035 | 218 | <onDelete>SET NULL</onDelete> |
c798ac7a | 219 | </foreignKey> |
6a488035 TO |
220 | <field> |
221 | <name>is_reserved</name> | |
c798ac7a | 222 | <title>Instance is Reserved</title> |
6a488035 TO |
223 | <type>boolean</type> |
224 | <default>0</default> | |
7a6ecdb4 | 225 | <html> |
226 | <type>CheckBox</type> | |
227 | </html> | |
6a488035 TO |
228 | <add>4.2</add> |
229 | </field> | |
230 | </table> |