BLOGS

4D V11 SQL

warning: file_get_contents(http://ipinfo.io/54.161.191.254) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.1 429 Too Many Requests in /var/www/www.4d.com/docs/includes/common.inc(1645) : eval()'d code on line 3.

Unicode Support

This example demonstrates 4D's ability to display Unicode characters.


It also shows the conversion of characters when using the Uppercase and Lowercase functions.

 

Download for Windows or Mac

 

4D Indexes

This example shows the possibilities of using indexes in 4D v11 SQL.


4D v11 SQL's index types include:

 

- BTree index for non-repeated values (IDs, names, etc.)
- cluster index for repeated values (Booleans, titles (M., Ms., etc.))
- composite index for sorting (FirstName+LastName, City+ZipCode, State+City, etc.)
- keyword indexes for texts

 

This also covers indexes created stored in a separate file.

 

To demonstrate their efficiency, this example explains how to choose the correct index type.
 

Integrated, Native SQL

One of the major features of 4D v11 SQL is its integrated, native SQL language.


The 4D v11 SQL language allows you to connect directly to an ODBC data source and to execute SQL queries inside  "Begin SQL" and "End SQL" tags (and via the new 4D command: QUERY BY SQL).


This database shows how to carry out queries with the 4D language as well as with SQL.


Specific examples show both languages in parallel in order to compare them easily and to highlight their respective advantages. Comments and explanations are provided during the execution of these queries.

Web Area

The new Web Area form object, introduced in 4D v11 SQL Release 2, allows you to display browser-accessible content in your 4D forms.


Web sites, local HTML pages, PDFs, movies, animations, JavaScript controls - all of them are at your diposal.


This demo uses Web Area to create a simple web browser, Google Maps mashup, document viewer, and canvas viewer in 4D v11 SQL.

 

Download for Windows or Mac

 

Stock Stalker

Stock Stalker is a simple application that tracks your selected stocks.


A Web Area form object displays current graphs of your stocks' performance as retrieved from the internet, with options for update interval, zoom level, date range, and more. (Many thanks to 4D developer Tom Dillon for this contribution.)

 

Download for Windows or Mac

 

SVG Goodies

This example demonstrates various uses of 4D SVG, from simple text formatting to advanced functions like creating images with reflections and even animation.


Requires 4D v11 SQL Release 3 or above.

Download for Windows or Mac

 

SVG Analog Clock

This demo uses a simple SVG file of an analog clock, animating the hour, minute and second hands based upon your system clock.


Requires 4D v11 SQL Release 3 or above.

Download for Windows or Mac

 

4D User Forms

With 4D, users can modify certain forms.

 

Starting with a classic "clients - invoices - invoices_lines" structure, two forms can be duplicated then modified by the users: "envelopes" and "invoices."

 

These two templates have been deliberately left "open" so the final user can modify the text, formats and paper orientations, as well as margins, objects, etc.

 

Each form can be duplicated as many times as necessary. This allows, for example, specifying several envelope formats as well as different templates for the invoices.

Theatre Seating Plan (SVG)

This is a simple simulation of a graphical seat selector for a theatre, showing seat availability based on a user's click.


Requires 4D v11 SQL Release 3 or above.

Download for Windows or Mac

 

4D Mailing

This application shows how to use the "4D Write" word processor to send customized e-mails to contacts as a mail shot.


Download for Windows or Mac