button, or by using the interrogation function and the data refresh request).
Refer to documentation Implementation
Presentation
The header provides information to identify the query and some setups of a general nature.
Close
Fields
The following fields are present on this tab :
Block number 1
| This code is used to identify a request. |
| [object Object] |
| This title provides a description of the record. |
| Select this check box to activate the current record. Disabled records keep their content and setup but cannot be used (by recalling their code) on other records (documents, settings ...), or for mass processes. The authorizations to a given function can prohibit the creation of an active record. In this case, the check box is disabled by default. It can only be modified by an authorized user or through a signature Workflow. |
Characteristics
| Used to manage the display of a query in inquiry mode, with the following behaviors:
|
| This indicator defines the fashion in which the representation of the data will be made in the screen. The possibilities offered are as follows :
|
| Used to organize the relationship between the character and the graphic, when the presentation mode for the data allows both. According to the case :
|
Close
Presentation
The first tab is used to enter the query and additional general parameters.
In the table called Columns, information to obtain a more precise presentation will be provided. Upon execution, the query returns a list of values which are loaded in the grid. When there is no further information:
Moreover a fix SQL query does not have much interest. It is necessary to integrate the parameters which are to be entered at the moment of the launch. This is enabled by the grid entitled Parameters.
Close
Fields
The following fields are present on this tab :
Block number 1
| It defines the code of a report that will be associated with the File / List function from the query inquiry. If this is not entered, the report ALISTE is used, which will submit a default page format. It is possible to duplicate this generic report (in principle it will then only be necessary to modify the page format) to create reports perfectly defined for the query thus defined. The report code entered here can be associated with a set of print codes via the dedicated function. |
| Used to link the authorizations to access the query with those authorizations granted on the function. The principle is as follows: upon entering the query, it is checked that the linked fucntion is authorized to the user (for at least one site, if the authorization on said function is granted by site). This is checked only in the case when this query is not shared. In effect, if the query is shared, it is admitted that the authorizations of the person that run the query are applied and shared with all those that have the right to view it. It is therefore necessary to be very careful when defining the authorizations of the shared queries if they concern sensitive data. This is done using the access code located in this tab. |
| This access code makes it possible to prohibit access to the current record for some users. As a matter of fact, if the field is completed, only the users having this access code with read rights (respectively write rights) can view (respectively modify) the concerned record. The execution right controls who can execute the query in question (by refreshing the query or by modifying the parameters and then re-running it). |
| Used to define a logical number of lines by page in the inquiry screen generated by the query designer. If this number of lines exceeds the number of physical lines that can be displayed, a scrolling bar appears on the righthand side of the grid. Buttons located in the upper part of the screen will enable navigation between logical pages (view next, previous, last, first page). |
| The maximum number of lines corresponds to a query parameter (maxrows) that stops the search once the number of lines meets the conditions that have been found in the database (these lines will then be sorted, but the database does not guarantee that the N lines found are the first N in the sort order). This represents an optimization used to limit the database load. |
| Used to make a classification criterion available for requests. |
| Makes it possible to fix the first x columns of a grid in the case of horizontal paging. |
| Allows the stopping of the search after this period of time. (expressed in seconds) This makes it possible to avoid waiting too long a time, namely in the case where a new query is being set up. Note: Contrary to the maximum number of lines, this information is not transmitted to the data base. The maximum time can be exceeded if the duration of the inquiry is too long. |
SQL query
| The request itself is then entered in the classic SQL form comprehensible by the database. Several notes on the subject of this request :
|
Grid Columns
|
| This data type is used to specify how the data will be presented.. In the case of a local menu, specify the number of the local menu used. If the data type used is linked to an object, it will be possible to use a tunnel to the object management during the enquiry. |
| Used to define a local menu number to be used to present the numerical value of the corresponding column sent by the request. |
| This field can only be entered if the representation mode selected in the header is not Character. It is used to specify the fashion in which the graphical representation will be used. It can take the following values:
|
| This field can only be entered :
It is used to manage the graph combinations if the graphic type defined in the graphical parameters is used to make several series appear, independently of different types (it is ignored in other cases). In practice, the usable combinations are as follows :
The rule is as follows :
|
Grid Parameters
| If this field is entered, a parameter where the title corresponds to this field can be entered before the execution of the request (using the button). This parameter can be used in the body of the request by means of the syntax %N%, where N is the corresponding line number in the parameters grid. |
| This data type is used to facilitate the entry of the corresponding parameter. In fact, if a type is defined :
|
| Used to define a local menu number to be used to enter the parameter value. |
|   |
Close
Presentation
This tab can only be entered if a graphical representation is available for the query. The way the data are displayed on the graphic is then defined.
Close
Fields
The following fields are present on this tab :
Graph
| This field is used once there is more than one numeric value in the grid that is likely to be presented in a graphical form. It can take one of two values :
|
| When several series are presented in the graph (provided that the presentation of all the series is identical and is not by sector type), it is possible to specify how the series values are combined in the display, by entering the following value :
|
| Defines the graphical representation used for the data to be presented (from the choices Bars, Lines, Area, Sectors). An image is displayed as a function of the choice made illustrating the type of presentation obtained. If only one series of values is available, the graphical representation is by default fixed by this parameter. If several series of values are presented, it is possible to mix the presentation modes (one series in the form of bars, another in the form of lines for example). In this case, each series of values is represented as a function of the field Representation located in the grid of fields :
When used, if the representation of the series is homogenous (that is there is only one series in the graph), there is a graph type selector for the user to select a different mode of presentation. |
Block number 3
| Image explaining the information previously entered. |
Block number 2
Block number 4
Close
It should be noted that no filter linked to authorizations is carried out (irrespective of whether they are authorizes by role, by site or by access codes) with the SQL query tool. It is therefore advisable to protect the queries of this type with an access code to limit the display rights and even more the execution of these queries. Similarly, the access to this function must normally be limited to a restricted list of users.
generates the screen associated with the inquiry and verifies the query by submitting it to the database for the verification of the syntax and the semantics. |
Is used to execute the current query. The execution is launched by updating a temporary table passes to the function to view queries, which makes it possible to view the result of the query. |
The following fields are included on the window opened through this button : Block number 1
Block number 2
Close This button is used to copy the record definition from or to another folder. |
In addition to the generic error messages, the following messages can appear during the entry :
From the point of view of the database the query is incorrect. Either it is not correct from the point of view of the syntax or the element does not exist. The description provided gives the title of the error returned by the database.
An attempt has been made to access a query created with the classic query tool using the SQL query tool (the codes in a query belonging to the SQL query tool cannot be used to name a classic query and vice versa).
The query has returned too many columns. It should be noted that the number of columns that can be read by the SQL query tool is limited to 120.