From 7c159debf220ab6c7abe6c5aaec436cebef716c3 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Mon, 27 Jun 2005 03:13:23 +0000 Subject: [PATCH] hover help --- lib/WebGUI/Asset/Wobject/SQLReport.pm | 6 ++ lib/WebGUI/Help/Asset_SQLReport.pm | 30 ++++++++++ lib/WebGUI/i18n/English/Asset_SQLReport.pm | 69 +++++++++++----------- 3 files changed, 71 insertions(+), 34 deletions(-) diff --git a/lib/WebGUI/Asset/Wobject/SQLReport.pm b/lib/WebGUI/Asset/Wobject/SQLReport.pm index c340314c3..37b685478 100644 --- a/lib/WebGUI/Asset/Wobject/SQLReport.pm +++ b/lib/WebGUI/Asset/Wobject/SQLReport.pm @@ -139,11 +139,13 @@ sub getEditForm { $tabform->getTab("display")->template( -value=>$self->getValue('templateId'), -label=>WebGUI::International::get(72,"Asset_SQLReport"), + -hoverHelp=>WebGUI::International::get('72 description',"Asset_SQLReport"), -namespace=>"SQLReport" ); $tabform->getTab("properties")->yesNo( -name=>"debugMode", -label=>WebGUI::International::get(16,"Asset_SQLReport"), + -hoverHelp=>WebGUI::International::get('16 description',"Asset_SQLReport"), -value=>$self->getValue("debugMode") ); @@ -178,16 +180,19 @@ sub getEditForm { $tabform->getTab("properties")->yesNo( -name=>"preprocessMacros".$nr, -label=>WebGUI::International::get(15,"Asset_SQLReport"), + -hoverHelp=>WebGUI::International::get('15 description',"Asset_SQLReport"), -value=>$self->getValue("preprocessMacros".$nr) ); $tabform->getTab("properties")->textarea( -name=>"placeholderParams".$nr, -label=>WebGUI::International::get('Placeholder Parameters',"Asset_SQLReport"), + -hoverHelp=>WebGUI::International::get('Placeholder Parameters description',"Asset_SQLReport"), -value=>$self->getValue("placeholderParams".$nr) ); $tabform->getTab("properties")->codearea( -name=>"dbQuery".$nr, -label=>WebGUI::International::get(4,"Asset_SQLReport"), + -hoverHelp=>WebGUI::International::get('4 description',"Asset_SQLReport"), -value=>$self->getValue("dbQuery".$nr) ); $tabform->getTab("properties")->databaseLink( @@ -220,6 +225,7 @@ sub getEditForm { $tabform->getTab("display")->integer( -name=>"paginateAfter", -label=>WebGUI::International::get(14,"Asset_SQLReport"), + -hoverHelp=>WebGUI::International::get('14 description',"Asset_SQLReport"), -value=>$self->getValue("paginateAfter") ); return $tabform; diff --git a/lib/WebGUI/Help/Asset_SQLReport.pm b/lib/WebGUI/Help/Asset_SQLReport.pm index 0e3c72c46..0cc55e2bd 100644 --- a/lib/WebGUI/Help/Asset_SQLReport.pm +++ b/lib/WebGUI/Help/Asset_SQLReport.pm @@ -5,6 +5,36 @@ our $HELP = { title => '61', body => '71', fields => [ + { + title => '72', + description => '72 description', + namespace => 'Asset_SQLReport', + }, + { + title => '16', + description => '16 description', + namespace => 'Asset_SQLReport', + }, + { + title => 'Placeholder Parameters', + description => 'Placeholder Parameters description', + namespace => 'Asset_SQLReport', + }, + { + title => '15', + description => '15 description', + namespace => 'Asset_SQLReport', + }, + { + title => '4', + description => '4 description', + namespace => 'Asset_SQLReport', + }, + { + title => '14', + description => '14 description', + namespace => 'Asset_SQLReport', + }, ], related => [ { diff --git a/lib/WebGUI/i18n/English/Asset_SQLReport.pm b/lib/WebGUI/i18n/English/Asset_SQLReport.pm index 9fb46a1ef..384a4fcc6 100644 --- a/lib/WebGUI/i18n/English/Asset_SQLReport.pm +++ b/lib/WebGUI/i18n/English/Asset_SQLReport.pm @@ -8,62 +8,63 @@ 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
+

Nested query support
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.

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

|, + lastUpdated => 1119841674, + }, -Debug?
-If you want to display debugging and error messages on the page, check this box. -

+ '72 description' => { + message => q|Select a template to display the results of your SQL Report. +

|, + lastUpdated => 1119841649, + }, -Preprocess macros on query?
-If you're using WebGUI macros in your query you'll want to check this box. -

+ '16 description' => { + message => q|If you want to display debugging and error messages on the page, check this box. +

|, + lastUpdated => 1119841649, + }, -Placeholder Parameters
-Placeholders, also called parameter markers, are used to indicate values in a SQL query that will be supplied later, before the statement is executed.
+ 'Placeholder Parameters description' => { + message => q|Placeholders, also called parameter markers, are used to indicate values in a SQL query that will be supplied later, before the statement is executed.
Placeholder Parameters are delimited by commas.
There are four input types:

-

Example:

Query: select * from some_table where some_field = ? and some_other_field < ?
Placeholder Parameters: query1:pageId,form:field1
- In this example the first question mark will contain the field value of pageId in query1, while the second question mark will contain the form variable "field1". -

+

|, + lastUpdated => 1119841649, + }, -Query
-This is a standard SQL query. If you are unfamiliar with SQL then you'll likely not want to use this wobject.
-A question mark ? in the query represents a placeholder. Note that the ? is not enclosed in quotation marks, even when the placeholder represents a string. + '15 description' => { + message => q|If you're using WebGUI macros in your query you'll want to check this box. +

|, + lastUpdated => 1119841649, + }, -

+ '4 description' => { + message => q|This is a standard SQL query. If you are unfamiliar with SQL then you'll likely not want to use this wobject.
+A question mark ? in the query represents a placeholder. Note that the ? is not enclosed in quotation marks, even when the placeholder represents a string. |, + lastUpdated => 1119841649, + }, -Database Link
-The administrator can configure common databases on which you can run SQL Reports, freeing you from having to know or enter the connectivity information. -

+ '14 description' => { + message => q|How many rows should be displayed before splitting the results into separate pages? In other words, how many rows should be displayed per page? +

|, + lastUpdated => 1119841649, + }, -Paginate After
-How many rows should be displayed before splitting the results into separate pages? In other words, how many rows should be displayed per page? -

- - -|, - lastUpdated => 1110001858, - }, '61' => { message => q|SQL Report, Add/Edit|,