Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
5 changes: 5 additions & 0 deletions docs/API/HTTPRequestClass.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,11 @@ In the *options* parameter, pass an object that can contain the following proper
|timeout|Real|Timeout in seconds. undefined = no timeout|undefined|
|validateTLSCertificate|Boolean|If false, 4D does not validate the TLS certificate and does not return an error if it is invalid (i.e. expired, self-signed...). Important: In the current implementation, the Certification Authority itself is not verified.|True|

:::note Keychain access on macOS

On macOS, depending on your local configuration, a password can be required when your 4D application accesses the certificate in the *keychain* for the first time.

:::

#### Callback functions

Expand Down
2 changes: 1 addition & 1 deletion docs/WritePro/commands-legacy/wp-table-get-rows.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ slug: /WritePro/commands/wp-table-get-rows
displayed_sidebar: docs
---

<!--REF #_command_.WP Table get rows.Syntax-->**WP Table get rows** ( *targetObj* : Object ) : Object<br/>**WP Table get rows** ( *tableRef* : Object ; startRow {; *numRows* : Integer} ) : Object<br/>**WP Table get rows** ( *tableRef* : Object ; *headers* : Text ) : Object<!-- END REF-->
<!--REF #_command_.WP Table get rows.Syntax-->**WP Table get rows** ( *targetObj* : Object ) : Object<br/>**WP Table get rows** ( *tableRef* : Object ; startRow : Integer {; *numRows* : Integer} ) : Object<br/>**WP Table get rows** ( *tableRef* : Object ; *headers* : Text ) : Object<!-- END REF-->
<!--REF #_command_.WP Table get rows.Params-->
<div class="no-index">

Expand Down
2 changes: 1 addition & 1 deletion docs/WritePro/commands/wp-get-attributes.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: WP Get attributes
displayed_sidebar: docs
---

<!--REF #_command_.WP Get attributes.Syntax-->**WP Get attributes** ( *targetObj* : Object ; ...(*attribName* : Text {; *attribValue* : Variable }) ) : Object<br/>**WP Get attributes** ( *targetObj* : Object ; *attribColl* : Collection ) : Object<!-- END REF-->
<!--REF #_command_.WP Get attributes.Syntax-->**WP Get attributes** ( *targetObj* : Object {; ...(attribName : Text {; attribValue : Variable })} ) : Object<br/>**WP Get attributes** ( *targetObj* : Object ; *attribColl* : Collection ) : Object<!-- END REF-->
<!--REF #_command_.WP Get attributes.Params-->
<div class="no-index">

Expand Down
6 changes: 3 additions & 3 deletions docs/WritePro/commands/wp-insert-picture.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ title: WP Insert picture
displayed_sidebar: docs
---

<!--REF #_command_.WP Insert picture.Syntax-->**WP Insert picture** ( *targetObj* : Object ; *picture* : Picture ; *mode* : Integer {; *rangeUpdate* : Integer} ): Object<br/>**WP Insert picture** ( *targetObj* : Object ; *pictureFileObj* : 4D.File; *mode* : Integer {; *rangeUpdate* : Integer}): Object<!-- END REF-->
<!--REF #_command_.WP Insert picture.Syntax-->**WP Insert picture** ( *targetObj* : Object ; *picture* : Picture ; *mode* : Integer {; *rangeUpdate* : Integer} ): Object<br/>**WP Insert picture** ( *targetObj* : Object ; *pictureFileObj* : 4D.File, Text ; *mode* : Integer {; *rangeUpdate* : Integer}): Object<!-- END REF-->
<!--REF #_command_.WP Insert picture.Params-->
<div class="no-index">

| Parameter | Type | | Description |
| --- | --- | --- | --- |
| targetObj | Object | &#8594; | Range or element or 4D Write Pro document |
| picture | Picture | &#8594; | Picture field or variable, or path to picture file on disk |
| pictureFileObj | [4D.File](../API/FileClass.md) | &#8594; | A File object representing a picture file.|
| picture | Picture | &#8594; | Picture field or variable |
| pictureFileObj | [4D.File](../API/FileClass.md), Text | &#8594; | A File object representing a picture file or path to picture file on disk|
| mode | Integer | &#8594; | Insertion mode |
| rangeUpdate | Integer | &#8594; | Range update mode |
| Function result | Object | &#8592; | Object referencing the picture |
Expand Down
2 changes: 1 addition & 1 deletion docs/language-legacy/4D Environment/verify-data-file.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ The *options* parameter is used to set verification options. The following optio

Generally, the VERIFY DATA FILE command creates a log file in XML format (please refer to the end of the description of this command). You can cancel this operation by passing this option. To create the log file, pass 0 in *options*.

The *method* parameter is used to set a callback method that will be called regularly during the verification. If you pass an empty string or an invalid method name, this parameter is ignored (no method is called). When called, the method receives up to 5 parameters depending on the objects being verified and on the event type originating the call (see calls table). It is imperative to declare these parameters in the method:
The *method* parameter is used to set a callback method that will be called regularly during the verification. If you pass an empty string, this parameter is ignored (no method is called). When called, the method receives up to 5 parameters depending on the objects being verified and on the event type originating the call (see calls table). It is imperative to declare these parameters in the method:

| Parameter | Type | Description |
| ----- | ------- | ------------------------ |
Expand Down
2 changes: 1 addition & 1 deletion docs/language-legacy/Arrays/selection-to-array.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ slug: /commands/selection-to-array
displayed_sidebar: docs
---

<!--REF #_command_.SELECTION TO ARRAY.Syntax-->**SELECTION TO ARRAY** ...(selection : Field, Table ; array : Array){; *})<!-- END REF-->
<!--REF #_command_.SELECTION TO ARRAY.Syntax-->**SELECTION TO ARRAY** (...(selection : Field, Table ; array : Array){; *})<!-- END REF-->
<!--REF #_command_.SELECTION TO ARRAY.Params-->
<div class="no-index">

Expand Down
2 changes: 1 addition & 1 deletion docs/language-legacy/Data Security/encrypt-data-file.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ In the *dataPath* parameter, you can pass an empty string, a file name, or a ful
The command does not modifiy the original files. They are moved in the *archiveFolder* folder (if passed) into a special folder named *Replaced files (Encrypting) YYYY-MM-DD HH-MM-SS* or *Replaced files (Decrypting) YYYY-MM-DD HH-MM-SS* where YYYY-MM-DD HH-MM-SS represents the date and time of the operation. For example: "Replaced files (Encrypting) 2018-09-29 13-00-35". New encrypted or decrypted data file automatically replaces the original file.
If you passed "" in *archiveFolder*, a standard **Open folder** dialog will appear so that the user can specify the location of the folder to be created. If *archiveFolder* is omitted, the original files are automatically stored in a timestamped folder created next to the structure file.

The *method* parameter is used to set a callback method that will be called regularly during the encryption process. If you pass an empty string or an invalid method name, this parameter is ignored (no method is called). When it is called, this method receives up to 5 parameters depending on the event type originating the call (see below). It is imperative to declare these parameters in the method:
The *method* parameter is used to set a callback method that will be called regularly during the encryption process. If you pass an empty string, this parameter is ignored (no method is called). When it is called, this method receives up to 5 parameters depending on the event type originating the call (see below). It is imperative to declare these parameters in the method:

| **Event** | **$messageType (Integer)** | **$objectType (Integer)** | **$messageText (Text)** | **$table (Integer)** | **$reserved (Integer)** |
| ------------- | --------- | ---------------- | ------------------- | --------------------------- | ---------------- |
Expand Down
2 changes: 1 addition & 1 deletion docs/language-legacy/String/match-regex.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ slug: /commands/match-regex
displayed_sidebar: docs
---

<!--REF #_command_.Match regex.Syntax-->**Match regex** ( *pattern* : Text ; *aString* : Text ) : Boolean<br/>**Match regex** ( *pattern* : Text ; *aString* : Text ; *start* : Integer {; *pos_found* : Integer ; *length_found* : Integer }{; *} ) : Boolean<br/>**Match regex** ( *pattern* : Text ; *aString* : Text ; *start* : Integer {; *pos_found* : Integer array ; *length_found* : Integer array }{; *} ) : Boolean<!-- END REF-->
<!--REF #_command_.Match regex.Syntax-->**Match regex** ( *pattern* : Text ; *aString* : Text ) : Boolean<br/>**Match regex** ( *pattern* : Text ; *aString* : Text ; *start* : Integer {; *pos_found* : Integer } {; *length_found* : Integer }{; *} ) : Boolean<br/>**Match regex** ( *pattern* : Text ; *aString* : Text ; *start* : Integer {; *pos_found* : Integer array } {; *length_found* : Integer array }{; *} ) : Boolean<!-- END REF-->
<!--REF #_command_.Match regex.Params-->
<div class="no-index">

Expand Down
4 changes: 2 additions & 2 deletions docs/language-legacy/XML DOM/dom-append-xml-child-node.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ slug: /commands/dom-append-xml-child-node
displayed_sidebar: docs
---

<!--REF #_command_.DOM Append XML child node.Syntax-->**DOM Append XML child node** ( *elementRef* : Text ; *childType* : Integer ; *childValue* : Text, Blob ) : Text<!-- END REF-->
<!--REF #_command_.DOM Append XML child node.Syntax-->**DOM Append XML child node** ( *elementRef* : Text ; *childType* : Integer ; *childValue* : any ) : Text<!-- END REF-->
<!--REF #_command_.DOM Append XML child node.Params-->
<div class="no-index">

| Parameter | Type | | Description |
| --- | --- | --- | --- |
| elementRef | Text | &#8594; | XML element reference |
| childType | Integer | &#8594; | Type of child to append |
| childValue | Text, Blob | &#8594; | Text or variable (Text or BLOB) whose value must be inserted as child node |
| childValue | any | &#8594; | Text or variable (Text or BLOB) whose value must be inserted as child node |
| Function result | Text | &#8592; | Reference of child XML element |
</div>
<!-- END REF-->
Expand Down
6 changes: 3 additions & 3 deletions docs/language-legacy/XML DOM/dom-get-xml-element-value.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ slug: /commands/dom-get-xml-element-value
displayed_sidebar: docs
---

<!--REF #_command_.DOM GET XML ELEMENT VALUE.Syntax-->**DOM GET XML ELEMENT VALUE** ( *elementRef* : Text ; *elementValue* : Variable {; *cDATA* : Variable} )<!-- END REF-->
<!--REF #_command_.DOM GET XML ELEMENT VALUE.Syntax-->**DOM GET XML ELEMENT VALUE** ( *elementRef* : Text ; *elementValue* : Variable, Field {; *cDATA* : Variable, Field} )<!-- END REF-->
<!--REF #_command_.DOM GET XML ELEMENT VALUE.Params-->
<div class="no-index">

| Parameter | Type | | Description |
| --- | --- | --- | --- |
| elementRef | Text | &#8594; | XML element reference |
| elementValue | Variable | &#8592; | Value of the element |
| cDATA | Variable | &#8592; | Contents of the CDATA section |
| elementValue | Variable, Field | &#8592; | Value of the element |
| cDATA | Variable, Field | &#8592; | Contents of the CDATA section |
</div>
<!-- END REF-->

Expand Down
4 changes: 2 additions & 2 deletions docs/language-legacy/XML SAX/sax-add-xml-element-value.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ slug: /commands/sax-add-xml-element-value
displayed_sidebar: docs
---

<!--REF #_command_.SAX ADD XML ELEMENT VALUE.Syntax-->**SAX ADD XML ELEMENT VALUE** ( *document* : Time ; *data* : Text, Variable {; *} )<!-- END REF-->
<!--REF #_command_.SAX ADD XML ELEMENT VALUE.Syntax-->**SAX ADD XML ELEMENT VALUE** ( *document* : Time ; *data* : any {; *} )<!-- END REF-->
<!--REF #_command_.SAX ADD XML ELEMENT VALUE.Params-->
<div class="no-index">

| Parameter | Type | | Description |
| --- | --- | --- | --- |
| document | Time | &#8594; | Reference of open document |
| data | Text, Variable | &#8594; | Text or variable to insert in the document |
| data | any | &#8594; | Text or variable to insert in the document |
| * | Operator | &#8594; | If passed: encoding of special characters If omitted: no encoding |
</div>
<!-- END REF-->
Expand Down
4 changes: 2 additions & 2 deletions docs/language-legacy/XML SAX/sax-get-xml-element-value.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ slug: /commands/sax-get-xml-element-value
displayed_sidebar: docs
---

<!--REF #_command_.SAX GET XML ELEMENT VALUE.Syntax-->**SAX GET XML ELEMENT VALUE** ( *document* : Time ; *value* : Text, Blob )<!-- END REF-->
<!--REF #_command_.SAX GET XML ELEMENT VALUE.Syntax-->**SAX GET XML ELEMENT VALUE** ( *document* : Time ; *value* : Variable, Field )<!-- END REF-->
<!--REF #_command_.SAX GET XML ELEMENT VALUE.Params-->
<div class="no-index">

| Parameter | Type | | Description |
| --- | --- | --- | --- |
| document | Time | &#8594; | Reference of open document |
| value | Text, Blob | &#8592; | Element value |
| value | Variable, Field | &#8592; | Element value (text or Blob) |
</div>
<!-- END REF-->

Expand Down
4 changes: 3 additions & 1 deletion docs/language-legacy/XML SAX/sax-open-xml-element-arrays.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,16 @@ slug: /commands/sax-open-xml-element-arrays
displayed_sidebar: docs
---

<!--REF #_command_.SAX OPEN XML ELEMENT ARRAYS.Syntax-->**SAX OPEN XML ELEMENT ARRAYS** ( *document* : Time ; *tag* : Text {; ...(*attribNamesArray* : Text array ; *attribValuesArray* : Array)} )<!-- END REF-->
<!--REF #_command_.SAX OPEN XML ELEMENT ARRAYS.Syntax-->**SAX OPEN XML ELEMENT ARRAYS** ( *document* : Time ; *tag* : Text {; ...(*attribName* : Text ; *attribValue* : Text)} )<br/>**SAX OPEN XML ELEMENT ARRAYS** ( *document* : Time ; *tag* : Text {; ...(*attribNamesArray* : Text array ; *attribValuesArray* : Array)} )<!-- END REF-->
<!--REF #_command_.SAX OPEN XML ELEMENT ARRAYS.Params-->
<div class="no-index">

| Parameter | Type | | Description |
| --- | --- | --- | --- |
| document | Time | &#8594; | Reference of open document |
| tag | Text | &#8594; | Name of element to open |
| attribName | Text | &#8594; | Attribute name |
| attribValue | Text | &#8594; | Attribute value |
| attribNamesArray | Text array | &#8594; | Array of attribute names |
| attribValuesArray | Array | &#8594; | Array of attribute values |
</div>
Expand Down
3 changes: 2 additions & 1 deletion docs/language-legacy/XML SAX/sax-set-xml-declaration.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ slug: /commands/sax-set-xml-declaration
displayed_sidebar: docs
---

<!--REF #_command_.SAX SET XML DECLARATION.Syntax-->**SAX SET XML DECLARATION** ( *document* : Time ; *encoding* : Text {; *standalone* : Boolean} )<!-- END REF-->
<!--REF #_command_.SAX SET XML DECLARATION.Syntax-->**SAX SET XML DECLARATION** ( *document* : Time ; *encoding* : Text {; *standalone* : Boolean} {; *indentation* : Boolean} )<!-- END REF-->
<!--REF #_command_.SAX SET XML DECLARATION.Params-->
<div class="no-index">

Expand All @@ -14,6 +14,7 @@ displayed_sidebar: docs
| document | Time | &#8594; | Reference of open document |
| encoding | Text | &#8594; | XML document character set |
| standalone | Boolean | &#8594; | True = the document is standalone False (default) = document is not standalone |
| indentation | Boolean | &#8594; | True = the document is indented, False (default) = document is not indented |
</div>
<!-- END REF-->

Expand Down
4 changes: 2 additions & 2 deletions docs/language-legacy/XML/xml-get-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ slug: /commands/xml-get-options
displayed_sidebar: docs
---

<!--REF #_command_.XML GET OPTIONS.Syntax-->**XML GET OPTIONS** ( *elementRef* : Text ; *selector* : Integer ; *value* : Integer {; ...(*selector* : Integer ; *value* : Integer)} )<br/>**XML GET OPTIONS** ( *document* : Text ; *selector* : Integer ; *value* : Integer {; ...(*selector* : Integer ; *value* : Integer)} )<!-- END REF-->
<!--REF #_command_.XML GET OPTIONS.Syntax-->**XML GET OPTIONS** ( *elementRef* : Text, Integer; *selector* : Integer ; *value* : Integer {; ...(*selector* : Integer ; *value* : Integer)} )<br/>**XML GET OPTIONS** ( *document* : Text ; *selector* : Integer ; *value* : Integer {; ...(*selector* : Integer ; *value* : Integer)} )<!-- END REF-->
<!--REF #_command_.XML GET OPTIONS.Params-->
<div class="no-index">

| Parameter | Type | | Description |
| --- | --- | --- | --- |
| elementRef | Text | &#8594; | XML root element reference |
| elementRef | Text, Integer | &#8594; | XML root element reference |
| document | Text | &#8594; | Reference of open document |
| selector | Integer | &#8594; | Option to get |
| value | Integer | &#8592; | Current value of option |
Expand Down
4 changes: 2 additions & 2 deletions docs/language-legacy/XML/xml-set-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ slug: /commands/xml-set-options
displayed_sidebar: docs
---

<!--REF #_command_.XML SET OPTIONS.Syntax-->**XML SET OPTIONS** ( *elementRef* : Text ; *selector* : Integer ; *value* : Integer {; ...(*selector* : Integer ; *value* : Integer)} )<br/>**XML SET OPTIONS** ( *document* : Text ; *selector* : Integer ; *value* : Integer {; ...(*selector* : Integer ; *value* : Integer)} )<!-- END REF-->
<!--REF #_command_.XML SET OPTIONS.Syntax-->**XML SET OPTIONS** ( *elementRef* : Text, Integer ; *selector* : Integer ; *value* : Integer {; ...(*selector* : Integer ; *value* : Integer)} )<br/>**XML SET OPTIONS** ( *document* : Text ; *selector* : Integer ; *value* : Integer {; ...(*selector* : Integer ; *value* : Integer)} )<!-- END REF-->
<!--REF #_command_.XML SET OPTIONS.Params-->
<div class="no-index">

| Parameter | Type | | Description |
| --- | --- | --- | --- |
| elementRef | Text | &#8594; | XML root element reference |
| elementRef | Text, Integer | &#8594; | XML root element reference |
| document | Text | &#8594; | Reference of open document |
| selector | Integer | &#8594; | Option to set |
| value | Integer | &#8594; | Value of option |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ In the *dataPath* parameter, you can pass an empty string, a file name, or a ful
The command does not modifiy the original files. They are moved in the *archiveFolder* folder (if passed) into a special folder named *Replaced files (Encrypting) YYYY-MM-DD HH-MM-SS* or *Replaced files (Decrypting) YYYY-MM-DD HH-MM-SS* where YYYY-MM-DD HH-MM-SS represents the date and time of the operation. For example: "Replaced files (Encrypting) 2018-09-29 13-00-35". New encrypted or decrypted data file automatically replaces the original file.
If you passed "" in *archiveFolder*, a standard **Open folder** dialog will appear so that the user can specify the location of the folder to be created. If *archiveFolder* is omitted, the original files are automatically stored in a timestamped folder created next to the structure file.

The *method* parameter is used to set a callback method that will be called regularly during the encryption process. If you pass an empty string or an invalid method name, this parameter is ignored (no method is called). When it is called, this method receives up to 5 parameters depending on the event type originating the call (see below). It is imperative to declare these parameters in the method:
The *method* parameter is used to set a callback method that will be called regularly during the encryption process. If you pass an empty string, this parameter is ignored (no method is called). When it is called, this method receives up to 5 parameters depending on the event type originating the call (see below). It is imperative to declare these parameters in the method:

| **Event** | **$messageType (Integer)** | **$objectType (Integer)** | **$messageText (Text)** | **$table (Integer)** | **$reserved (Integer)** |
| ------------- | --------- | ---------------- | ------------------- | --------------------------- | ---------------- |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ The *options* parameter is used to set verification options. The following optio

Generally, the VERIFY DATA FILE command creates a log file in XML format (please refer to the end of the description of this command). You can cancel this operation by passing this option. To create the log file, pass 0 in *options*.

The *method* parameter is used to set a callback method that will be called regularly during the verification. If you pass an empty string or an invalid method name, this parameter is ignored (no method is called). When called, the method receives up to 5 parameters depending on the objects being verified and on the event type originating the call (see calls table). It is imperative to declare these parameters in the method:
The *method* parameter is used to set a callback method that will be called regularly during the verification. If you pass an empty string, this parameter is ignored (no method is called). When called, the method receives up to 5 parameters depending on the objects being verified and on the event type originating the call (see calls table). It is imperative to declare these parameters in the method:

| Parameter | Type | Description |
| ----- | ------- | ------------------------ |
Expand Down
Loading
Loading