01b549638e65aa112c2dc36cfa44258f05e3f6bf
FAQ/IzendaAdHocReports-table.md
| ... | ... | @@ -39,6 +39,21 @@ BEGIN |
| 39 | 39 | END; |
| 40 | 40 | ``` |
| 41 | 41 | |
| 42 | +##PostgreSQL Table Script |
|
| 43 | + |
|
| 44 | +```sql |
|
| 45 | +CREATE TABLE IzendaAdHocReports ( |
|
| 46 | + "Name" varchar(255) NOT NULL, |
|
| 47 | + "Xml" text, |
|
| 48 | + "createddate" date, |
|
| 49 | + "modifieddate" date, |
|
| 50 | + "tenantid" varchar(255), |
|
| 51 | + "izendaadhocreportsid" integer, |
|
| 52 | + "reportsourceid" integer, |
|
| 53 | + "thumbnail" bytea |
|
| 54 | +); |
|
| 55 | +``` |
|
| 56 | + |
|
| 42 | 57 | ##Izenda FORMS plugin |
| 43 | 58 | |
| 44 | 59 | The Izenda [[FORMS|/Guides/ReportDesign/14.0-Izenda-FORMS]] plugin uses a unique process to generate the pixel-perfect forms that the report viewers see. To do this, it needs a special column in the database. Here is the table script with the new column added. |
| ... | ... | @@ -78,6 +93,22 @@ BEGIN |
| 78 | 93 | END; |
| 79 | 94 | ``` |
| 80 | 95 | |
| 96 | +###PostgreSQL Table Script |
|
| 97 | + |
|
| 98 | +```sql |
|
| 99 | +CREATE TABLE IzendaAdHocReports ( |
|
| 100 | + "Name" varchar(255) NOT NULL, |
|
| 101 | + "Xml" text, |
|
| 102 | + "createddate" date, |
|
| 103 | + "modifieddate" date, |
|
| 104 | + "tenantid" varchar(255), |
|
| 105 | + "izendaadhocreportsid" integer, |
|
| 106 | + "form" text, |
|
| 107 | + "reportsourceid" integer, |
|
| 108 | + "thumbnail" bytea |
|
| 109 | +); |
|
| 110 | +``` |
|
| 111 | + |
|
| 81 | 112 | ###MSSQL Alter table script |
| 82 | 113 | |
| 83 | 114 | And here is an SQL statement to add the field to an existing table. |
| ... | ... | @@ -97,4 +128,13 @@ ALTER TABLE IzendaAdHocReports |
| 97 | 128 | ADD (Form NCLOB); |
| 98 | 129 | COMMIT; |
| 99 | 130 | END; |
| 131 | +``` |
|
| 132 | + |
|
| 133 | +###PostgreSQL Alter table script |
|
| 134 | + |
|
| 135 | +Here is the PostgreSQL equivalent of the above alter table script |
|
| 136 | + |
|
| 137 | +```sql |
|
| 138 | +ALTER TABLE IzendaAdHocReports |
|
| 139 | +ADD Form text; |
|
| 100 | 140 | ``` |
| ... | ... | \ No newline at end of file |