diff --git a/lib/WebGUI/i18n/English/SQLReport.pm b/lib/WebGUI/i18n/English/SQLReport.pm index d2e12febb..76531e843 100644 --- a/lib/WebGUI/i18n/English/SQLReport.pm +++ b/lib/WebGUI/i18n/English/SQLReport.pm @@ -8,9 +8,15 @@ our $I18N = { '71' => { message => q|SQL Reports are perhaps the most powerful wobject in the WebGUI arsenal. They allow a user to query data from any database that they have access to. This is great for getting sales figures from your Accounting database or even summarizing all the message boards on your web site. +

SQL Reports are Wobjects and Assets, so they share the properties of both. SQL Reports also have these unique properties:

+ +Template
+Select a template to display the results of your SQL Report. +

+ Nested query support
-The SQL Report wobject supports up to 4 nested queries. Each subsequent query is executed for each row in the previous query results. For example, if you have two queries: query1 and query2, then query2 will be executed once for each row returned in query1. You can use placeholder parameters to compose subqueries with data from prior queries. +The SQL Report wobject supports up to 5 nested queries (1 base query and 4 subqueries). Each subsequent query is executed for each row in the previous query results. For example, if you have two queries: query1 and query2, then query2 will be executed once for each row returned in query1. You can use placeholder parameters to compose subqueries with data from prior queries.

Debug?
@@ -56,7 +62,7 @@ How many rows should be displayed before splitting the results into separate pag |, - lastUpdated => 1101774391 + lastUpdated => 1110001858, }, '61' => { @@ -131,6 +137,18 @@ The name of this column as returned by the query. +rows.count
+The total number of rows returned by the query. +

+ +rows.count.isZero
+A boolean indicating that the query returned zero rows. +

+ +rows.count.isZero.label
+The default label for rows.count.isZero. +

+ rows_loop
A loop containing the data returned from the query.

@@ -168,8 +186,12 @@ The data in this field. A boolean indicating whether query2 has returned any results.

-query2.columns_loop
-A loop containing information about each column for query2. +Any subqueries will have exactly the same format as the loops +and variables above, but will be prefixed with queryN where N +goes from 2 to 5.

+ +queryN.columns_loop
+A loop containing information about each column for queryN.

@@ -182,20 +204,32 @@ The name of this column as returned by the query.

-query2.rows_loop
-A loop containing the data returned from query2. +queryN.rows.count
+The total number of rows returned by queryN. +

+ +queryN.count.isZero
+A boolean indicating that queryN returned zero rows. +

+ +queryN.rows.count.isZero.label
+The default label for rows.count.isZero. +

+ +queryN.rows_loop
+A loop containing the data returned from queryN.

-query2.row.number
+queryN.row.number
An integer starting with 1 and counting through the total list of rows.

-query2.row.field.NAME.value
+queryN.row.field.NAME.value
The data for a given field in this row where NAME is the name of the field as it is returned by the query.

-query2.row.field_loop
+queryN.row.field_loop
A loop containing all of the fields for this row.

@@ -214,46 +248,15 @@ The data in this field.
-query2.hasNest
-A boolean indicating whether the query3 has returned any results. -

- -query3.columns_loop
-A loop containing information about each column for query3. -

- -query3.rows_loop
-A loop containing the data returned from query3. -

- -query2.rows.count
-The total number of rows returned by query2. -

- -query2.count.isZero
-A boolean indicating that query2 returned zero rows. -

- -
-
-
- -rows.count
-The total number of rows returned by the query. -

- -rows.count.isZero
-A boolean indicating that the query returned zero rows. -

- -rows.count.isZero.label
-The default label for rows.count.isZero. +queryN.hasNest
+A boolean indicating whether the queryN+1 has returned any results. This variable +will always be false for query5.

|, - lastUpdated => 1100235434 + lastUpdated => 1110004844, }, '16' => {