Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
version:web:fonction:editeuretat:dataset [2020/04/24 09:05] nicolas |
version:web:fonction:editeuretat:dataset [2021/07/19 17:43] (Version actuelle) nicolas |
||
---|---|---|---|
Ligne 4: | Ligne 4: | ||
Vous pouvez aussi consulter | Vous pouvez aussi consulter | ||
- | * [[:version: | + | * [[clientlourd:autres: |
* [[: | * [[: | ||
* [[: | * [[: | ||
Ligne 20: | Ligne 20: | ||
- Afin l' | - Afin l' | ||
- | Afin de faciliter le choix des données qui vont être traitées, il est possible de lancer à l' | + | Afin de faciliter le choix des données qui vont être traitées, il est possible de lancer à l' |
===== La gestion du pré-filtre ===== | ===== La gestion du pré-filtre ===== | ||
Ligne 26: | Ligne 26: | ||
==== Paramétrer dans l' | ==== Paramétrer dans l' | ||
- | {{: | + | {{: |
* initialiser à " | * initialiser à " | ||
Ligne 36: | Ligne 36: | ||
==== Utilisez le pré-filtre ==== | ==== Utilisez le pré-filtre ==== | ||
- | [[: | + | [[: |
[[: | [[: | ||
- | ===== Les outils de filtrage lié au DataSet de l' | ||
- | ===== Quelques informations complémentaire pour les développeurs ===== | ||
- | ==== Organisation des interaction entre les filtrages | + | ===== Le DataSet TfrxQuery de Logeas informatique ===== |
- | === Note pour les développeurs | + | Quelques informations complémentaire |
+ | **Unité D: | ||
- | Le principe de fonctionnement retenu est le suivant : | ||
+ | ==== Organisation des interaction entre les filtrages ==== | ||
+ | Le principe de fonctionnement retenu est le suivant : | ||
* au lancement de l' | * au lancement de l' | ||
* ensuite la création de la table (CreateTable) est appelez en fonction de l' | * ensuite la création de la table (CreateTable) est appelez en fonction de l' | ||
Ligne 56: | Ligne 56: | ||
* Enfin on filtre éventuellement ftable/ | * Enfin on filtre éventuellement ftable/ | ||
- | === Les propriétés du DataSet " | + | ==== Les propriétés du DataSet " |
- | + | === Propriétés liées au pré-filtrage === | |
- | == Propriétés liées au pré-filtrage == | + | |
^Propriété^Type^Lecture/ | ^Propriété^Type^Lecture/ | ||
|FilterName|String|Lecture/ | |FilterName|String|Lecture/ | ||
|NonEtat|String|Lecture/ | |NonEtat|String|Lecture/ | ||
|ShowFilterDialog|Boolean|Lecture/ | |ShowFilterDialog|Boolean|Lecture/ | ||
- | + | === Propriétés liées au filtrage finales des données reçues === | |
- | == Propriétés liées au filtrage finales des données reçues == | + | |
^Propriété^Type^Lecture/ | ^Propriété^Type^Lecture/ | ||
|SQL|String|Lecture/ | |SQL|String|Lecture/ | ||
|Filter|String|Lecture/ | |Filter|String|Lecture/ | ||
|Filtered|Boolean|Lecture/ | |Filtered|Boolean|Lecture/ | ||
- | + | === Propriétés liées à la possibilité d' | |
- | == Propriétés liées à la possibilité d' | + | |
^Propriété^Type^Lecture/ | ^Propriété^Type^Lecture/ | ||
|CanExport|Boolean|Lecture/ | |CanExport|Boolean|Lecture/ | ||
- | + | === Propriétés informatives === | |
- | == Propriétés informatives == | + | |
^Propriété^Type^Lecture/ | ^Propriété^Type^Lecture/ | ||
|Description|String|Lecture/ | |Description|String|Lecture/ | ||
Ligne 84: | Ligne 76: | ||
|SQLFinal|String|Lecture seul|Requête SQL exécutée sur la base de donnée| | |SQLFinal|String|Lecture seul|Requête SQL exécutée sur la base de donnée| | ||
|UserName|String|Lecture/ | |UserName|String|Lecture/ | ||
- | + | === Propriétés autres === | |
- | == Propriétés autres == | + | |
^Propriété^Type^Lecture/ | ^Propriété^Type^Lecture/ | ||
|BCDTOCurrency|Boolean|Lecture/ | |BCDTOCurrency|Boolean|Lecture/ | ||
Ligne 94: | Ligne 84: | ||
|Name|String|Lecture/ | |Name|String|Lecture/ | ||
|ShowFilterDialog|Boolean|Lecture/ | |ShowFilterDialog|Boolean|Lecture/ | ||
- | + | === Propriétés non implémentées ou non testées === | |
- | == Propriétés non implémentées ou non testées == | + | |
^Propriété^Type^Lecture/ | ^Propriété^Type^Lecture/ | ||
|IgnoreDupParams|Boolean|Lecture/ | |IgnoreDupParams|Boolean|Lecture/ | ||
Ligne 106: | Ligne 94: | ||
|FieldAliases|TStringList|Lecture/ | |FieldAliases|TStringList|Lecture/ | ||
- | \\ | + | ==== Syntaxe SQL de la requête ==== |
+ | === Fonctions disponibles === | ||
+ | [[https:// | ||
+ | * MATH.TRIG | ||
+ | * SIN(x) | ||
+ | * COS(x) | ||
+ | * TAN(x) | ||
+ | * LOG(x) | ||
+ | * LOG2(x) | ||
+ | * EXP(x) | ||
+ | * MATH | ||
+ | * TRUNC(x) Returns integer part | ||
+ | * FRAC(x) Returns fractional part | ||
+ | * MOD(x,y) Return remainder after integer division | ||
+ | * DIV(x,y) Integer division | ||
+ | * SQRT(x) Square root | ||
+ | * SQR(x) Square. Same as x*x | ||
+ | * ROOT(x,y) Calculate y’th root of x. | ||
+ | * MIN(x1.., | ||
+ | * MAX(x1.., | ||
+ | * AVG(x1..xn) Return average value of all arguments | ||
+ | * SUM(x1.., | ||
+ | * ABS(x) Return absolute (Non negative) value of x | ||
+ | * POW(x,y) Return x in the power of y | ||
+ | * STRING | ||
+ | * UPPER(x) Return uppercase value | ||
+ | * LOWER(x) Return lowercase value | ||
+ | * TRIM(x) Return value trimmed for leading and trailing spaces | ||
+ | * MID(x,y,z) Return z characters from x starting at y (first character is 1) | ||
+ | * LEFT(x,y) Return y leftmost characters of x | ||
+ | * RIGHT(x,y) Return y rightmost characters of x | ||
+ | * LENGTH(x) Return the length in characters of x | ||
+ | * LEFTPAD(x, | ||
+ | * RIGHTPAD(x, | ||
+ | * CHR(x) Convert the integer value x to a unicode character | ||
+ | * POS(x,y) Return the position in y, where the substring x is to be found. 0 is returned if x is not in y | ||
+ | * REPLACE(x, | ||
+ | * SPLIT(x, | ||
+ | * DATETIME | ||
+ | * NOW Returns current date and time as a Delphi TDateTime type floating point value. | ||
+ | * DATE(x) Returns the date part of x which is a Delphi TDateTime type floating point value, as an integer. Same as TRUNC(somedate) | ||
+ | * TIME(x) Returns the time part of x which is a Delphi TDateTime type floating point value as a float. Same as FRAC(somedate) | ||
+ | * YEAR(x) Returns the year as an integer (2017) of the Delphi TDateTime type floating point value. | ||
+ | * MONTH(x) Returns the month as an integer (1 = Jan, 12=Dec) of the Delphi TDateTime type floating point value. | ||
+ | * DAY(x) Returns the day of month as an integer (1..31) of the Delphi TDateTime type floating point value. | ||
+ | * HOURS(x) Returns the hour value as an integer (0..23) of the Delphi TDateTIme type floating point value. | ||
+ | * MINUTES(x) Returns the minutes part as an integer (0..59) of the Delphi TDateTime type floating point value. | ||
+ | * SECONDS(x) Returns the seconds part as an integer (0..59) of the Delphi TDateTime type floating point value. | ||
+ | * DATESTRING(x) Returns the date of a Delphi TDateTime type floating point value as a formatted string according to the FormatSettings defined on the TkbmMemSQL component. | ||
+ | * TIMESTRING(x) Returns the time of a Delphi TDateTime type floating point value as a formatted string according to the FormatSettings defined on the TkbmMemSQL component. | ||
+ | * CAST | ||
+ | * CASTTODATETIME(x) Casts x to a Delphi TDateTime floating point value. If x is a string, it will be parsed according to the FormatSettings. | ||
+ | * CASTTOSTRING(x) Casts x to a string. If x is a TDateTime value, it will be converted to a date/time string value according to the FormatSettings. | ||
+ | * CASTTONUMBER(x) Casts x to a number. If x is a string, it will be converted to a floating point value according to the FormatSettings. | ||
+ | * CONDITIONAL | ||
+ | * IF(x,y,z,v) Depending on x, either y, z or v (optional) will be returned. If x is true, then y will be returned. If x is false, then z will be returned and if x is null then v alternative z will be returned if v is not specified. | ||
+ | * ISNULL(x) Return true or false depending on if x is null. | ||
+ | * CONVERSION | ||
+ | * DATATYPE(x, | ||
+ | === Fonctions ajoutées === | ||
+ | ^Nom et format^Explication^ | ||
+ | |StrMonth(< | ||
+ | ==== Syntaxe SQL ==== | ||
+ | |||
+ | [[https:// | ||
+ | |||
+ | === Limitations/ | ||
+ | |||
+ | * le requetteur ne gère pas plusieurs niveau (exemple : SELECT * FROM (SELECT * FROM Personne)) | ||
+ | * les requettes doivent être au format SQL pas au format mormot !!! | ||
+ | * les parametre dans les requettes SQL ne sont pas gérés | ||
+ | * lors des regroupement par Group BY le renommage des champs initiaux d'une table pose probléme ... | ||
+ | * tous les champs déclaré doivent être repris dans ORDER BY!!! | ||
+ | * lors d'un plantage (mauvaise requette par exemple) il arrive que les tables disparaisse... Fermer le logiciel et rechargé !!! | ||