Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
129 commits
Select commit Hold shift + click to select a range
975343d
first draft
arnaud4d Apr 14, 2025
498f879
first draft
arnaud4d Apr 14, 2025
2c9b032
configure search
arnaud4d Apr 28, 2025
e84cb99
fix in rest $compute
arnaud4d Apr 28, 2025
7a881b3
New translations $compute.md (French)
arnaud4d Apr 28, 2025
7c8986a
New translations collectionclass.md (French)
arnaud4d Apr 28, 2025
e55becc
New translations $compute.md (French)
arnaud4d Apr 28, 2025
b5a89e7
New translations collectionclass.md (French)
arnaud4d Apr 28, 2025
1808188
New translations code-overview.md (French)
arnaud4d Apr 28, 2025
f982952
New translations components.md (French)
arnaud4d Apr 28, 2025
37ffdf6
New translations $attributes.md (French)
arnaud4d Apr 28, 2025
04c62a6
New translations $compute.md (French)
arnaud4d Apr 28, 2025
48e5b52
New translations write-class-method.md (French)
arnaud4d Apr 28, 2025
0081a5b
New translations collectionclass.md (French)
arnaud4d Apr 28, 2025
9b1572c
New translations code-overview.md (French)
arnaud4d Apr 28, 2025
722c195
New translations components.md (French)
arnaud4d Apr 28, 2025
8285ff0
New translations $attributes.md (French)
arnaud4d Apr 28, 2025
12756ac
New translations $compute.md (French)
arnaud4d Apr 28, 2025
d7f1164
New translations write-class-method.md (French)
arnaud4d Apr 28, 2025
83bf9c1
New translations collectionclass.md (French)
arnaud4d Apr 28, 2025
b459c4b
New translations code-overview.md (French)
arnaud4d Apr 28, 2025
cbcc90e
New translations components.md (French)
arnaud4d Apr 28, 2025
51a8543
New translations $attributes.md (French)
arnaud4d Apr 28, 2025
b8f5de3
New translations $compute.md (French)
arnaud4d Apr 28, 2025
0b12448
New translations write-class-method.md (French)
arnaud4d Apr 28, 2025
0f6ce92
New translations $compute.md (Spanish)
arnaud4d Apr 28, 2025
a72b556
New translations $compute.md (Spanish)
arnaud4d Apr 28, 2025
a741b43
New translations building.md (Spanish)
arnaud4d Apr 28, 2025
0e1b064
New translations $compute.md (Spanish)
arnaud4d Apr 28, 2025
00c1bb1
New translations process-activity.md (Spanish)
arnaud4d Apr 28, 2025
cf7a918
New translations building.md (Spanish)
arnaud4d Apr 28, 2025
3316def
New translations $compute.md (Spanish)
arnaud4d Apr 28, 2025
028a805
New translations process-activity.md (Spanish)
arnaud4d Apr 28, 2025
e9090f5
New translations tcpconnectionclass.md (Spanish)
arnaud4d Apr 28, 2025
8f66fe9
New translations tcpconnectionclass.md (Spanish)
arnaud4d Apr 28, 2025
c4a02bd
New translations labels.md (Spanish)
arnaud4d Apr 28, 2025
4793ab9
New translations tcplistenerclass.md (Spanish)
arnaud4d Apr 28, 2025
bcd797e
New translations tcpconnectionclass.md (Spanish)
arnaud4d Apr 28, 2025
02a62cf
New translations tcplistenerclass.md (Spanish)
arnaud4d Apr 28, 2025
57b93bc
New translations building.md (Spanish)
arnaud4d Apr 28, 2025
f83b0c0
New translations labels.md (Spanish)
arnaud4d Apr 28, 2025
242dd84
New translations $compute.md (Spanish)
arnaud4d Apr 28, 2025
ce88b2e
New translations process-activity.md (Spanish)
arnaud4d Apr 29, 2025
7c4fbc6
New translations $compute.md (Japanese)
arnaud4d Apr 29, 2025
2850b06
New translations $compute.md (Japanese)
arnaud4d Apr 29, 2025
b5957da
New translations $compute.md (Japanese)
arnaud4d Apr 29, 2025
6e0cfdb
New translations $compute.md (Japanese)
arnaud4d Apr 29, 2025
cff96ec
New translations $compute.md (Japanese)
arnaud4d Apr 29, 2025
ed15c70
New translations $compute.md (Portuguese, Brazilian)
arnaud4d Apr 29, 2025
b4c7917
New translations current.json (Portuguese, Brazilian)
arnaud4d Apr 29, 2025
186b6de
New translations $compute.md (Portuguese, Brazilian)
arnaud4d Apr 29, 2025
832b7be
New translations $compute.md (Portuguese, Brazilian)
arnaud4d Apr 29, 2025
1bb5080
New translations version-20-r8.json (Portuguese, Brazilian)
arnaud4d Apr 29, 2025
7465358
New translations $compute.md (Portuguese, Brazilian)
arnaud4d Apr 29, 2025
86093e0
New translations math.md (Portuguese, Brazilian)
arnaud4d Apr 29, 2025
40b5866
New translations math.md (Portuguese, Brazilian)
arnaud4d Apr 29, 2025
80939ca
New translations $compute.md (Portuguese, Brazilian)
arnaud4d Apr 29, 2025
de87965
New translations math.md (Portuguese, Brazilian)
arnaud4d Apr 29, 2025
b132206
Merge pull request #2773 from doc4d/l10n_main
arnaud4d Apr 29, 2025
fac9ae3
Update ai-resend.png
arnaud4d Apr 29, 2025
f643c99
Update writeprointerface.md
arnaud4d Apr 29, 2025
f20caec
Update writeprointerface.md
arnaud4d Apr 29, 2025
7c56b65
New translations fileclass.md (French)
arnaud4d Apr 29, 2025
a00583f
New translations fileclass.md (French)
arnaud4d Apr 29, 2025
b94559f
after closure, doc
arnaud4d Apr 29, 2025
303e999
Merge branch 'main' into feature/4dWPinterfaceAI
arnaud4d Apr 29, 2025
c3ca376
ai wp v20R9
arnaud4d Apr 29, 2025
ee7f5cc
Merge pull request #2775 from doc4d/feature/4dWPinterfaceAI
arnaud4d Apr 29, 2025
71fd966
2nd update search
arnaud4d Apr 29, 2025
d734ab0
Merge branch 'main' of https://github.com/doc4d/docs
arnaud4d Apr 29, 2025
b03c464
Merge pull request #2774 from doc4d/l10n_main
arnaud4d Apr 29, 2025
523a864
New translations updates.md (French)
arnaud4d Apr 29, 2025
b55c14e
New translations components.md (French)
arnaud4d Apr 29, 2025
691c20d
New translations writeprointerface.md (French)
arnaud4d Apr 29, 2025
e540f05
New translations components.md (French)
arnaud4d Apr 29, 2025
653c397
New translations components.md (French)
arnaud4d Apr 29, 2025
a003290
New translations writeprointerface.md (French)
arnaud4d Apr 29, 2025
80b9724
New translations updates.md (Spanish)
arnaud4d Apr 30, 2025
9a86b1e
New translations writeprointerface.md (Spanish)
arnaud4d Apr 30, 2025
a52792e
New translations writeprointerface.md (Spanish)
arnaud4d Apr 30, 2025
caf98c7
New translations updates.md (Japanese)
arnaud4d Apr 30, 2025
03e10a5
New translations writeprointerface.md (Japanese)
arnaud4d Apr 30, 2025
3f7f21c
New translations writeprointerface.md (Japanese)
arnaud4d Apr 30, 2025
d9aab14
New translations updates.md (Portuguese, Brazilian)
arnaud4d Apr 30, 2025
87cbc61
New translations writeprointerface.md (Portuguese, Brazilian)
arnaud4d Apr 30, 2025
134158d
New translations writeprointerface.md (Portuguese, Brazilian)
arnaud4d Apr 30, 2025
70e9898
New translations ai-button.png (French)
arnaud4d Apr 30, 2025
41e99bb
New translations ai-interaction.png (French)
arnaud4d Apr 30, 2025
405a593
New translations ai-menu.png (French)
arnaud4d Apr 30, 2025
0ffdc00
New translations ai-resend.png (French)
arnaud4d Apr 30, 2025
945eb6e
New translations ai-send.png (French)
arnaud4d Apr 30, 2025
3a597a4
New translations ai-button.png (French)
arnaud4d Apr 30, 2025
19a8b71
New translations ai-interaction.png (French)
arnaud4d Apr 30, 2025
707ac89
New translations ai-menu.png (French)
arnaud4d Apr 30, 2025
6b66156
New translations ai-resend.png (French)
arnaud4d Apr 30, 2025
675b8a4
New translations ai-send.png (French)
arnaud4d Apr 30, 2025
7f38b06
New translations ai-button.png (Spanish)
arnaud4d Apr 30, 2025
2c56710
New translations ai-interaction.png (Spanish)
arnaud4d Apr 30, 2025
538c5f4
New translations ai-menu.png (Spanish)
arnaud4d Apr 30, 2025
ec5cb64
New translations ai-resend.png (Spanish)
arnaud4d Apr 30, 2025
5745a77
New translations ai-send.png (Spanish)
arnaud4d Apr 30, 2025
9ca0bf8
New translations ai-button.png (Spanish)
arnaud4d Apr 30, 2025
7522095
New translations ai-interaction.png (Spanish)
arnaud4d Apr 30, 2025
7f8d89c
New translations ai-menu.png (Spanish)
arnaud4d Apr 30, 2025
7ca342d
New translations ai-resend.png (Spanish)
arnaud4d Apr 30, 2025
2796840
New translations ai-send.png (Spanish)
arnaud4d Apr 30, 2025
8882cd8
New translations ai-button.png (Japanese)
arnaud4d Apr 30, 2025
5dd491c
New translations ai-interaction.png (Japanese)
arnaud4d Apr 30, 2025
2290ec0
New translations ai-menu.png (Japanese)
arnaud4d Apr 30, 2025
6c3dcce
New translations ai-resend.png (Japanese)
arnaud4d Apr 30, 2025
16c66f9
New translations ai-send.png (Japanese)
arnaud4d Apr 30, 2025
eb3c45a
New translations ai-button.png (Japanese)
arnaud4d Apr 30, 2025
228639c
New translations ai-interaction.png (Japanese)
arnaud4d Apr 30, 2025
a8da316
New translations ai-menu.png (Japanese)
arnaud4d Apr 30, 2025
51bc6b5
New translations ai-resend.png (Japanese)
arnaud4d Apr 30, 2025
3a00d09
New translations ai-send.png (Japanese)
arnaud4d Apr 30, 2025
ab1d0d9
New translations ai-button.png (Portuguese, Brazilian)
arnaud4d Apr 30, 2025
8937eee
New translations ai-interaction.png (Portuguese, Brazilian)
arnaud4d Apr 30, 2025
ef06891
New translations ai-menu.png (Portuguese, Brazilian)
arnaud4d Apr 30, 2025
fa45137
New translations ai-resend.png (Portuguese, Brazilian)
arnaud4d Apr 30, 2025
0f1d6f6
New translations ai-send.png (Portuguese, Brazilian)
arnaud4d Apr 30, 2025
64079b8
New translations ai-button.png (Portuguese, Brazilian)
arnaud4d Apr 30, 2025
2232e3d
New translations ai-interaction.png (Portuguese, Brazilian)
arnaud4d Apr 30, 2025
4a1e6a7
New translations ai-menu.png (Portuguese, Brazilian)
arnaud4d Apr 30, 2025
b3d77e4
New translations ai-resend.png (Portuguese, Brazilian)
arnaud4d Apr 30, 2025
8cbb4c8
New translations ai-send.png (Portuguese, Brazilian)
arnaud4d Apr 30, 2025
57f32cd
Merge pull request #2776 from doc4d/l10n_main
arnaud4d Apr 30, 2025
865a080
no DP for ai WP
arnaud4d Apr 30, 2025
43d735c
Merge branch 'main' of https://github.com/doc4d/docs
arnaud4d Apr 30, 2025
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
1 change: 1 addition & 0 deletions docs/Notes/updates.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ Read [**What’s new in 4D 20 R9**](https://blog.4d.com/en-whats-new-in-4d-20-R9
- New [4D AIKit component](../aikit/overview.md) enabling interaction with third-party AI APIs.
- The following VP command callbacks now wait for all 4D custom functions to complete their calculations: [VP IMPORT DOCUMENT](../ViewPro/commands/vp-import-document.md), [VP IMPORT FORM BLOB](../ViewPro/commands/vp-import-from-blob.md), [VP IMPORT FROM OBJECT](../ViewPro/commands/vp-import-from-object.md), and [VP FLUSH COMMANDS](../ViewPro/commands/vp-flush-commands.md).
- New [4D Netkit](https://developer.4d.com/4D-NetKit/) features to manage Google and Microsoft 365 calendars; ability to use the host web server for OAuth 2.0 authentication.
- 4D Write Pro Interface: New [integrated AI](../WritePro/writeprointerface.md#integrated-ai) to interact with **chatGTP** from your 4D Write Pro documents.
- [**Fixed bug list**](https://bugs.4d.fr/fixedbugslist?version=20_R9): list of all bugs that have been fixed in 4D 20 R9.


Expand Down
6 changes: 3 additions & 3 deletions docs/REST/$compute.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ If you want to get all the computations for an attribute of type Number, you can

**Response**:

````
```js
{
"salary": {
"count": 4,
Expand All @@ -57,7 +57,7 @@ If you want to get all the computations for an attribute of type String, you can

**Response**:

````
```js
{
"salary": {
"count": 4,
Expand All @@ -73,7 +73,7 @@ If you want to just get one calculation on an attribute, you can write the follo

**Response**:

`235000`
`335000`


If you want to perform a calculation on an Object attribute, you can write the following:
Expand Down
123 changes: 121 additions & 2 deletions docs/WritePro/writeprointerface.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ A 4D developer can easily implement these palettes in their application. Thus, e

The main [4D Write Pro Interface documentation](https://doc.4d.com/4Dv20/4D/20/Entry-areas.300-6263967.en.html) can be found in the *4D Design Reference manual*.

You will find below the Table Wizard configuration documentation.
You will find below:

- the Table Wizard configuration documentation,
- the integrated A.I. documentation.

## Table Wizard

Expand Down Expand Up @@ -295,4 +298,120 @@ For every attribute used in your JSON file (header, data, carry-over, summary, a

#### See also

[4D Write Pro - Table Wizard (tutorial video)](https://www.youtube.com/watch?v=2ChlTju-mtM)
[4D Write Pro - Table Wizard (tutorial video)](https://www.youtube.com/watch?v=2ChlTju-mtM)


## Integrated AI

You can use an integrated AI in the 4D Write Pro interface so that you can easily translate or enhance your documents without having to use an external AI application.

Once you have enabled the AI feature, you can display a chat box over your 4D Write Pro document and interact with *chatGPT* to modify the text of the selection or of the document itself.

:::note

The 4D Write Pro interface uses OpenAI, for which you need to provide your own key (see below).

:::

### Limitations (Developer Preview)

In the current implementation, the feature has the following limitations:

- use of a predefined AI provider and necessity to pass your OpenAI key
- basic chatting features
- no image handling
- non-configurable predefined action commands
- predefined translations English/French and French/English only



### Enabling the AI feature

The AI dialog box is available by clicking on a button in the 4D Write Pro interface. This button is **hidden by default**, you need to enable it explicitely.

To display the AI dialog box button, you need to:

1. Get an API key from the [OpenAI website](https://openai.com/api/).
2. Execute the following 4D code:

```4d

WP SetAIKey ("<Your OpenAI Key>") //

```

:::note

No checking is done on the OpenAI key validity. If it is invalid, the *chatGPT* box will stay empty.

:::


The **A.I.** button is then displayed:

![ai button](../assets/en/WritePro/ai-button.png)

- in the 4D Write Pro Toolbar, in the **Import Export** tab,
- in the 4D Write Pro Widget, in the **Font Style** tab.

Click on the button to display the AI dialog box.

### AI dialog box

The 4D Write Pro AI dialog box allows a straightforward interaction between the chat area and the 4D Write Pro document.

#### Prompt area

At the bottom of the window, the **prompt area** allows you to enter any question to send to the AI.

To send your question to the AI, click on the Send button:

![ai send](../assets/en/WritePro/ai-send.png)


The button icon changes when the same request is sent again:

![ai resend](../assets/en/WritePro/ai-resend.png)

On the left side of this area, a pop up menu provides examples of common actions that can be usually delegated to the AI.

Selecting an action writes a corresponding question to the prompt. If necessary, you can modify the question and then to click on the Send button to actually send it:

![ai menu](../assets/en/WritePro/ai-menu.png)

:::note

Default translation actions are based upon the current 4D default configuration and depend on available languages.

:::

#### Copy buttons

These buttons propose basic interactions between the chat area, the underlying 4D Write Pro document, and the clipboard:

![ai interaction](../assets/en/WritePro/ai-interaction.png)

- **Return raw text**/**Return styled text**: Copy the latest response or the selected response from the AI to the 4D Write Pro document at the current insertion point, replacing the selected text if any.
- **Copy raw text**/**Copy styled text**: Copy the latest response or the selected response from the AI in the clipboard.

In both cases, if the response was provided with styles, you can decide to copy the text with or without styles.

:::note

The chat box uses the Markdown language to format text. Basic styles such as bold, italic, underline, titles are supported. When pasting styled text from the AI in the 4D Write Pro area, you may lose some formatting information.

:::

#### Chat area

The Chat area displays the whole interaction between you and the AI. You can scroll and select and part you want.

To empty this area, you can click on the Erase button of the History area (resets the window and all interactions).


#### History

The History area lists all your prompts sent to the AI. You can hide/show this area using the button on the top right corner of the Chat area.

The Erase button allows you to reset the whole window and erase all interactions. It is equivalent to close/reopen the AI dialog box.

Binary file added docs/assets/en/WritePro/ai-button.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/en/WritePro/ai-interaction.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/en/WritePro/ai-menu.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/en/WritePro/ai-resend.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/en/WritePro/ai-send.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,13 @@ module.exports = {
appId: 'OJ04C0M3CU',
indexName: '4d',
//contextualSearch: false
//added for command search
searchParameters: {
advancedSyntax: true,
queryType: 'prefixAll', // Priorise la chaine entiere
removeWordsIfNoResults: 'allOptional', // Recherche les elements individuels si aucun resultat
},
// end
},
docs: {
sidebar: {
Expand Down
Loading