Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
071605b
New translations functionclass.md (French)
arnaud4d Feb 9, 2026
e896d84
New translations collectionclass.md (French)
arnaud4d Feb 9, 2026
4860bde
New translations functionclass.md (French)
arnaud4d Feb 9, 2026
46c8c7f
New translations collectionclass.md (French)
arnaud4d Feb 9, 2026
0ea0547
New translations orda-events.md (Spanish)
arnaud4d Feb 9, 2026
846ac35
New translations privileges.md (Japanese)
arnaud4d Feb 9, 2026
a934d44
New translations privileges.md (Japanese)
arnaud4d Feb 9, 2026
b869529
New translations privileges.md (Japanese)
arnaud4d Feb 9, 2026
c4e8e3c
New translations collectionclass.md (French)
arnaud4d Feb 9, 2026
bd0adc6
New translations json-validate.md (French)
arnaud4d Feb 9, 2026
09e8ab3
New translations orda-events.md (Spanish)
arnaud4d Feb 10, 2026
3927da9
New translations orda-events.md (Spanish)
arnaud4d Feb 10, 2026
34d941e
New translations forms.md (Spanish)
arnaud4d Feb 10, 2026
ef0e377
New translations orda-events.md (Spanish)
arnaud4d Feb 10, 2026
7cae730
New translations properties_action.md (Japanese)
arnaud4d Feb 10, 2026
66c64ae
New translations privileges.md (Japanese)
arnaud4d Feb 10, 2026
49e1838
New translations remotedatastores.md (Japanese)
arnaud4d Feb 10, 2026
34edfd9
New translations privileges.md (Japanese)
arnaud4d Feb 10, 2026
8a600c8
New translations remotedatastores.md (Japanese)
arnaud4d Feb 10, 2026
1238d7b
New translations privileges.md (Japanese)
arnaud4d Feb 10, 2026
8c6a09f
New translations remotedatastores.md (Japanese)
arnaud4d Feb 10, 2026
80cfa0f
New translations forms.md (Spanish)
arnaud4d Feb 10, 2026
b5c72ac
New translations properties_action.md (Japanese)
arnaud4d Feb 10, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ La [propiedad de formulario JSON](./properties_JSONref.md) correspondiente es `f

#### CSS

The [**form-theme** CSS media query](./createStylesheet.md#media-queries) allows you to configure several styles depending on the used theme.
El [media query CSS **form-theme**](./createStylesheet.md#media-queries) permite configurar varios estilos en función del tema utilizado.

### Comportamientos específicos

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ Este evento se activa con las siguientes funcionalidades:
- [`entitySelection.drop()`](../API/DataClassClass.md#fromcollection)
- [reglas de control de eliminación](https://doc.4d.com/4Dv20/4D/20.2/Relation-properties.300-6750290.en.html#107320) que pueden definirse a nivel de la estructura de la base de datos.

Este evento se activa **mientras** la entidad es realmente suprimida. If a [`validateDrop()`](#function-event-validatedrop) event function was defined, the `dropping()` event function is called if no error was triggered by `validateDrop()`.
Este evento se activa **mientras** la entidad es realmente suprimida. Si se ha definido una función de evento [`validateDrop()`](#function-event-validatedrop), se llama a la función de evento `dropping()` si no se ha producido ningún error con `validateDrop()`.

:::note

Expand All @@ -563,25 +563,25 @@ Para detener la acción, el código de la función debe devolver un [objeto erro

#### Ejemplo

Estes es un ejemplo del evento `dropping` a nivel de entidad:
Este es un ejemplo del evento `dropping` a nivel de entidad:

```4d
// ProductsEntity class
// Clase ProductsEntity
Function event dropping($event : Object) : Object

var $result : Object
var $userManualFile : 4D.File

$userManualFile:=File(This.userManualPath)

// When dropping a product, its user manual is also deleted on the disk
// This action may fail
// Al soltar un producto, también se borra su manual de usuario en el disco
// Esta acción puede fallar
Try
If ($userManualFile.exists)
$userManualFile.delete()
End if
Catch
// Dropping the user manual failed
// Falló al soltar el manual de usuario
$result:={errCode: 1; message: "Drop failed"; extraDescription: {info: "The user manual can't be dropped"}}
End try

Expand All @@ -603,7 +603,7 @@ Este evento es útil después de soltar datos para propagar la acción de soltar

La función recibe un [objeto *event*](#event-parameter) como parámetro.

- To avoid infinite loops, calling a [`drop()`](../API/EntityClass.md#drop) on the current entity (through `This`) in this function is **not allowed**. Se producirá un error.
- Para evitar los bucles infinitos, llamar a [`drop()`](../API/EntityClass.md#drop) en la entidad actual (a través de `This`) en esta función **no está permitido**. Se producirá un error.
- Arrojar un [objeto error](#error-object) **no es soportado** por esta función.

:::note
Expand All @@ -622,8 +622,8 @@ Function event afterDrop($event : Object)
var $status : Object

If (($event.status.success=False) && ($event.status.errors=Null))
//$event.status.errors is filled
//if the error comes from the validateDrop event
//$event.status.errors se llena
//si el error proviene del evento validateDrop
This.status:="Check this product - Drop action failed"
$status:=This.save()
End if
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ La [propiedad de formulario JSON](./properties_JSONref.md) correspondiente es `f

#### CSS

The [**form-theme** CSS media query](./createStylesheet.md#media-queries) allows you to configure several styles depending on the used theme.
El [media query CSS **form-theme**](./createStylesheet.md#media-queries) permite configurar varios estilos en función del tema utilizado.

### Comportamientos específicos

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ Este evento se activa con las siguientes funcionalidades:
- [`entitySelection.drop()`](../API/DataClassClass.md#fromcollection)
- [reglas de control de eliminación](https://doc.4d.com/4Dv20/4D/20.2/Relation-properties.300-6750290.en.html#107320) que pueden definirse a nivel de la estructura de la base de datos.

Este evento se activa **mientras** la entidad es realmente suprimida. If a [`validateDrop()`](#function-event-validatedrop) event function was defined, the `dropping()` event function is called if no error was triggered by `validateDrop()`.
Este evento se activa **mientras** la entidad es realmente suprimida. Si se ha definido una función de evento [`validateDrop()`](#function-event-validatedrop), se llama a la función de evento `dropping()` si no se ha producido ningún error con `validateDrop()`.

:::note

Expand All @@ -563,25 +563,25 @@ Para detener la acción, el código de la función debe devolver un [objeto erro

#### Ejemplo

Estes es un ejemplo del evento `dropping` a nivel de entidad:
Este es un ejemplo del evento `dropping` a nivel de entidad:

```4d
// ProductsEntity class
// Clase ProductsEntity
Function event dropping($event : Object) : Object

var $result : Object
var $userManualFile : 4D.File

$userManualFile:=File(This.userManualPath)

// When dropping a product, its user manual is also deleted on the disk
// This action may fail
// Al soltar un producto, también se borra su manual de usuario en el disco
// Esta acción puede fallar
Try
If ($userManualFile.exists)
$userManualFile.delete()
End if
Catch
// Dropping the user manual failed
// Falló al soltar el manual de usuario
$result:={errCode: 1; message: "Drop failed"; extraDescription: {info: "The user manual can't be dropped"}}
End try

Expand All @@ -603,7 +603,7 @@ Este evento es útil después de soltar datos para propagar la acción de soltar

La función recibe un [objeto *event*](#event-parameter) como parámetro.

- To avoid infinite loops, calling a [`drop()`](../API/EntityClass.md#drop) on the current entity (through `This`) in this function is **not allowed**. Se producirá un error.
- Para evitar los bucles infinitos, llamar a [`drop()`](../API/EntityClass.md#drop) en la entidad actual (a través de `This`) en esta función **no está permitido**. Se producirá un error.
- Arrojar un [objeto error](#error-object) **no es soportado** por esta función.

:::note
Expand All @@ -622,8 +622,8 @@ Function event afterDrop($event : Object)
var $status : Object

If (($event.status.success=False) && ($event.status.errors=Null))
//$event.status.errors is filled
//if the error comes from the validateDrop event
//$event.status.errors se llena
//si el error proviene del evento validateDrop
This.status:="Check this product - Drop action failed"
$status:=This.save()
End if
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ Este evento se activa con las siguientes funcionalidades:
- [`entitySelection.drop()`](../API/DataClassClass.md#fromcollection)
- [reglas de control de eliminación](https://doc.4d.com/4Dv20/4D/20.2/Relation-properties.300-6750290.en.html#107320) que pueden definirse a nivel de la estructura de la base de datos.

Este evento se activa **mientras** la entidad es realmente suprimida. If a [`validateDrop()`](#function-event-validatedrop) event function was defined, the `dropping()` event function is called if no error was triggered by `validateDrop()`.
Este evento se activa **mientras** la entidad es realmente suprimida. Si se ha definido una función de evento [`validateDrop()`](#function-event-validatedrop), se llama a la función de evento `dropping()` si no se ha producido ningún error con `validateDrop()`.

:::note

Expand All @@ -563,25 +563,25 @@ Para detener la acción, el código de la función debe devolver un [objeto erro

#### Ejemplo

Estes es un ejemplo del evento `dropping` a nivel de entidad:
Este es un ejemplo del evento `dropping` a nivel de entidad:

```4d
// ProductsEntity class
// Clase ProductsEntity
Function event dropping($event : Object) : Object

var $result : Object
var $userManualFile : 4D.File

$userManualFile:=File(This.userManualPath)

// When dropping a product, its user manual is also deleted on the disk
// This action may fail
// Al soltar un producto, también se borra su manual de usuario en el disco
// Esta acción puede fallar
Try
If ($userManualFile.exists)
$userManualFile.delete()
End if
Catch
// Dropping the user manual failed
// Falló al soltar el manual de usuario
$result:={errCode: 1; message: "Drop failed"; extraDescription: {info: "The user manual can't be dropped"}}
End try

Expand All @@ -603,7 +603,7 @@ Este evento es útil después de soltar datos para propagar la acción de soltar

La función recibe un [objeto *event*](#event-parameter) como parámetro.

- To avoid infinite loops, calling a [`drop()`](../API/EntityClass.md#drop) on the current entity (through `This`) in this function is **not allowed**. Se producirá un error.
- Para evitar los bucles infinitos, llamar a [`drop()`](../API/EntityClass.md#drop) en la entidad actual (a través de `This`) en esta función **no está permitido**. Se producirá un error.
- Arrojar un [objeto error](#error-object) **no es soportado** por esta función.

:::note
Expand All @@ -622,8 +622,8 @@ Function event afterDrop($event : Object)
var $status : Object

If (($event.status.success=False) && ($event.status.errors=Null))
//$event.status.errors is filled
//if the error comes from the validateDrop event
//$event.status.errors se llena
//si el error proviene del evento validateDrop
This.status:="Check this product - Drop action failed"
$status:=This.save()
End if
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ $element:=$col.at(10) // undefined
| Paramètres | Type | | Description |
| ------------ | --------------- | :-------------------------: | --------------------------------------------------------------- |
| propertyPath | Text | -> | Chemin de propriété d'objet à utiliser pour évaluer les valeurs |
| Résultat | Real, Undefined | <- | où : |
| Résultat | Real, Undefined | <- | Moyenne arithmétique des valeurs de la collection |

</div>
<!-- END REF -->
Expand Down Expand Up @@ -2319,13 +2319,13 @@ Vous souhaitez trier une collection par code de caractère ou par langage :
var $strings1; $strings2 : Collection
$strings1:=New collection("Alpha";"Charlie";"alpha";"bravo";"Bravo";"charlie")

//using the character code:
//Utilisation du code de caractère :
$strings2:=$strings1.orderByMethod(Formula(sortCollection);sk char codes)
// result : ["Alpha","Bravo","Charlie","alpha","bravo","charlie"]
// résultat : ["Alpha","Bravo","Charlie","alpha","bravo","charlie"]

//using the language:
//Utilisation du langage :
$strings2:=$strings1.orderByMethod(Formula(sortCollection);sk strict)
// result : ["alpha","Alpha","bravo","Bravo","charlie","Charlie"]
// résultat : ["alpha","Alpha","bravo","Bravo","charlie","Charlie"]
```

booléens
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ displayed_sidebar: docs

<!--REF #_command_.JSON Validate.Params-->

| Paramètres | Type | | Description |
| ---------- | ------ | --------------------------- | -------------------------------------------------------- |
| vJson | Object | &#8594; | JSON object to validate |
| vSchema | Object | &#8594; | JSON schema used to validate JSON objects |
| Résultat | Object | &#8592; | Validation status and errors (if any) |
| Paramètres | Type | | Description |
| ---------- | ------ | --------------------------- | ------------------------------------------------------------------- |
| vJson | Object | &#8594; | Objet JSON à valider |
| vSchema | Object | &#8594; | Schéma JSON utilisé pour valider les objets JSON |
| Résultat | Object | &#8592; | Statut de validation et erreurs (le cas échéant) |

<!-- END REF-->

Expand Down Expand Up @@ -51,13 +51,13 @@ To validate a JSON object, 4D uses the norm described in a **JSON Schema Validat

The version to use should be inserted in the schema using the *$schema* key:

- version 2020-12:
- version 2020-12 :

```json
"$schema": "https://json-schema.org/draft/2020-12/schema",
```

- version 4:
- version 4 :

```json
"$schema": "http://json-schema.org/draft-04/schema#",
Expand Down Expand Up @@ -97,7 +97,7 @@ Each error object of the *errors* collection contains the following properties:

<details>The following errors may be returned:

| **Code** | **JSON Keyword** | **Message** |
| **Code** | **Mot-clé JSON** | **Message** |
| -------- | -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 2 | multipleOf | Error while validating against 'multipleOf' key. |
| 3 | maximum | The value provided should not be greater than specified in the schema ("{s1}"). |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,10 @@ Les paramètres sont reçus dans la méthode, dans l'ordre où ils sont spécifi
<!-- REF #_command_.Formula.Params -->
<div class="no-index">

|Parameter|Type||Description|
|Paramètre|Type||Description|
|---------|--- |:---:|------|
|formulaExp|Expression|->|Formula to be returned as object|
|Result|4D.Function|<-|Native function encapsulating the formula|
|formulaExp|Expression|->|Formule à renvoyer en tant qu'objet|
|Résultat|4D.Function|<-|Native function encapsulating the formula|
</div>
<!-- END REF -->

Expand Down Expand Up @@ -263,10 +263,10 @@ Appeler une formule à l'aide de la notation objet :
<!-- REF #_command_.Formula from string.Params -->
<div class="no-index">

|Parameter|Type||Description|
|Paramètre|Type||Description|
|---------|--- |:---:|------|
|formulaString|Text|->|Text formula to be returned as object|
|Result|4D.Function|<-|Native object encapsulating the formula|
|formulaExp|Expression|->|Formule de texte à renvoyer en tant qu'objet|
|Résultat|4D.Function|<-|Native object encapsulating the formula|
</div>
<!-- END REF -->

Expand Down Expand Up @@ -323,11 +323,11 @@ Le code suivant permettra de créer un dialogue acceptant une formule dans un fo
<!-- REF #FunctionClass.apply().Params -->
<div class="no-index">

|Parameter|Type||Description|
|Paramètre|Type||Description|
|---------|--- |:---:|------|
|thisObj|Object|->|Object to be returned by the This command in the formula|
|formulaParams |Collection|->|Collection of values to be passed as $1...$n when `formula` is executed|
|Result|any|<-|Value from formula execution|
|thisObj|Object|->|Objet à renvoyer par la commande This dans la formule|
|formulaParams |Collection|->|Collection de valeurs à transmettre en tant que $1...$n lorsque `formula` est exécutée|
|Résultat|any|<-|Value from formula execution|
</div>
<!-- END REF -->

Expand Down Expand Up @@ -389,11 +389,11 @@ A noter que `.apply()` est similaire à [`.call()`](#call), néanmoins les param
<!-- REF #FunctionClass.call().Params -->
<div class="no-index">

|Parameter|Type||Description|
|---|---|---|---|
|thisObj|Object|->|Object to be returned by the This command in the formula|
|params |any|->|Value(s) to be passed as $1...$n when formula is executed|
|Result|any|<-|Value from formula execution|
|Paramètre|Type||Description|
|---|---||---|
|thisObj|Object|->|Objet à renvoyer par la commande This dans la formule|
|params |any|->|Valeur(s) à transmettre comme $1...$n lors de l'exécution de la formule|
|Résultat|any|<-|Value from formula execution|
</div>
<!-- END REF -->

Expand Down
Loading
Loading