1 Object Definition
Access to data base dictionary (wic) where user wants to create an SQL object.
How to access object definition
Information about how access to object definition form, on document Basic table objects.
Remain all values by defect except Type section, explained below.
1.1 READ ONLY Type
Select option READ ONLY on section Type in order to indicate that it is a list.
1.2 SQL Query
Object query is written on XML:
<select> <columns> invoice.billingaddress, invoice.billingcity, invoice.billingpostalcode, invoice.invoiceid, invoice.invoicedate, invoice.total, track.name, invoiceline.unitprice, invoiceline.quantity </columns> <from table='invoice'> <join table='invoiceline'> <on>invoice.invoiceID = invoiceline.invoiceID</on> <join table='track'> <on>invoiceline.trackid = track.trackid</on> </join> </join> </from> </select>
This sentence selects bills data with its lines.
XML Grammar
More information about XML grammar in order to write SQL queries, on document Select.
Order
Query result can be sorted by indicating columns on Sort of section. With the same syntax SQL of ORDER BY clause: DESC to descendant (ASC implicit).
Performance
An order by columns which doesn't belong to an index, connected to an elevate number of registers by table, can cause that the query result won't be immediate.
1.3 Input
Selected columns on SQL query whom user could filter on access form.
It used to be a subset of all selected sections on the query.
If no column is defined, form won't have filter page.
Column *
If it is allow to filter by all columns of a table, is needed to entry to a fictitious section *.
1.4 Variables
Variables can be used as filter sections, but they can't be related with table columns and they are always required.
About SQL query defined, add a start date and a final date in order to check invoices on a determined time:
Variables have to be treated clearly on the query:
<select> <columns> invoice.billingcity, invoice.billingaddress, invoice.billingpostalcode, invoice.invoiceid, invoice.invoicedate, invoice.total, track.name, invoiceline.unitprice, invoiceline.quantity </columns> <from table='invoice'> <join table='invoiceline'> <on>invoice.invoiceID = invoiceline.invoiceID</on> <join table='track'> <on>invoiceline.trackid = track.trackid</on> </join> </join> </from> <where> invoice.invoicedate BETWEEN $SDATE AND $EDATE </where> </select>
It refers to the variable content with character $, followed by the variable name.
Type | Values examples by default |
---|---|
Entire |
Copy
0
Copy
<xsql-text><year><today /></year></xsql-text>
Copy
<xsql-text>gdwh_get_anysem(<today />)</xsql-text> |
Char |
Copy
*
Copy
A
Copy
/home/interfaces/
Copy
<xsql-text>gdwh_get_cladoc(<today/>)</xsql-text> |
Date |
Copy
TODAY
Copy
<xsql-text><eval-date y='-1'><today /></eval-date></xsql-text>
Copy
<xsql-text><mdy><m>1</m><d>1</d><y><year><today /></year></y></mdy></xsql-text> |
DateTime |
Copy
CURRENT |
1.5 Output
Selected columns on SQL query that are viewed on object execution.
Automatic Generation
Exit sections are generated automatically when object is executed for the first time.
Review name of each table and section
If query is composed by more than one table, it is necessary to review table name assigned to each section.
Section Breakup Group is used in order to define a group of related columns on a report, which represents the same concept. In addition, these columns will be differentiated on style level. By default, all sections belong to 0 group. On the image, is defined 1 group for all columns that belong to the invoice header.
Section Add allows to apply adds and other functions added to columns. On the image, unitprice and quantity columns are customized. When there are breakup groups defined, user can see all values of each group.
2 Execution
Access to exploitation database and execute a list.
How to execute objects
Information about how to execute objects on the document Basic table objects.
2.1 Filter page
Filter or Query are the first pages executed:
Where user can see all sections customized as input of the object.
Metacharacters
It is possible to use metacharacters as asterisk:
*red*
(on section
name), user could select invoices rows with song names
Seve
red Hand
,
Bo
red To Tears
, etc.
It is optional to access to form by filtering by any field.
By clicking on button Enter, user can access to the list:
2.2 Execution
Result is a page where user can find different registers:
2.3 Print
Click on button print:
2.3.1 Print
It is needed to remain all values by default on pop-up window, except Print field where user has to select a print. Production field has to have selected option Formatting Objects PDF .
Click on Print button.
2.3.2 Download PDF
It is needed to remain all values by default on pop-up window. Field Production has to have selected Formatting Objects PDF .
Click on Download button.
2.3.3 Download Excel
On Exit type field of pop-up window, user has to select an Excel option:
Click on Download button.
2.3.4 Download FO
It is needed to remain all values by default on pop-up window. Field Production has to have selected Formatting Objects PDF .
Show drop-down button Download and select option Download FO.