4D v14

ビデオの内容

ホーム

 
4D v14
ビデオの内容

ビデオの内容  


 

 

In this video, we're going to learn how to integrate the 4DWrite plug-in so as to give you the know-how to use word-processing functions within a 4D application.

Let’s start by installing the plug-in:

  • Quit your application.
  • Create a folder named “Plugins” in your database (remember that on a Mac, it's a package)
  • Drag the 4D Write plug-in into the Plugins folder.

Re-launch 4D.

To make sure the plugin is installed properly, check the Tools menu and you see that 4DWrite is available to be used as a stand-alone word processor.

Our goal is to create an area in the Input form of the Interventions table where we can enter text in order to write an intervention report.

We select the Plugin tool and draw an area.
In the area properties, we're going to indicate that the plug-in type is "4DWrite" and then name it "Report".

4D indicates that "4D Write could automatically save data in the picture or blob field if it existed". Here we're talking about an automatic record.

So in the structure, we'll create the corresponding Report_ field as a blob.

Back in the form, 4D displays the following message automatically:"4DWrite will automatically save data in the field Report_".

Let's test to see if it works:

  • First we display all the interventions
  • Double-click on an intervention
  • Below we see the 4DWrite area where we can enter text
  • And when we move from record to record, the information is automatically saved.

In this area, we can add pictures or any graphic elements required that are available in the word processor.

Let's look at a detail concerning page layout. We set the comment and the technician's e-mail so that they grow and move with the window; we're going to change this so that when we work in full-screen mode, we won't have this inconvenience.

So we need to request:

  • that the comment does not grow
  • that technician's e-mail no longer moves
  • and that the 4DWrite area grows wider and taller.

Going back to the form, if we enlarge the area, we now see the desired behavior.

You can refer to the documentation to learn about all the functions available in 4D Write, such as:

  • being able to insert 4D expressions; in other words, inserting fields, methods, etc.
  • pictures obviously
  • and being able to perform mail integration using multi-table data from the database.

In the documentation, you'll also find a series of examples that will help you go further using this plugin.

 
プロパティ 

プロダクト: 4D
テーマ: 4D Writeプラグイン

 
ARTICLE USAGE

セルフトレーニング ( 4D v13)
セルフトレーニング ( 4D v14)