RESOURCESOLD

EXAMPLE APPLICATIONS


4D IndexesDatabase
This example shows the various possibilities of using indexes in 4D.

4D'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

 

The indexes are created and stored in a separate file.

 

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

Download for Windows or Mac

4D MailingProductivity
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

 

4D Objects User Interface
This example shows all the interface objects managed by 4D.

These include:

 

• variables

• buttons

• hierarchical lists

• fields

• checkboxes

• etc.

 

To use it, you can click on the buttons representing the Form editor tool bar or you can select a specific type of object directly from a dropdown menu.

 

Download for Windows or Mac

 

4D PicturesSupport for Standards
This application shows off 4D's image processing capabilities.

Images can be displayed in various ways, as well as transformed. They can be imported, exported, and changed from one format to another (i.e. JPG to PNG).

 

Other possibilities are demonstrated as well.

 

Download for Windows or Mac

4D SOAP ClientConnectivity
This SOAP client queries the "4D SOAP Server" application, which must be launched before hand using another 4D application.

Download for Windows or Mac

4D SOAP ServerConnectivity
When launched, this application provides a SOAP service that lets you find out the distance between two cities.

The "4D SOAP Client" example application allows you to test the operation of this service.

 

Download for Windows or Mac

Contact List BoxUser Interface
This application shows you how to use the List Box object with and without programming.

The List Box object replaces grouped arrays on your forms.

 

You can enter data directly into a cell, display alternate colors for rows, resize and sort columns, and much more.

 

Download for Windows or Mac

EncyclopediaProductivity
This application allows you to consult and edit the contents of a glossary or an interactive dictionary.

The words of definition can be clicked individually to access their definitions directly via a link.

 

You can also create new definitions (for any word selected in the texts) by clicking on a button.

 

Download for Windows or Mac

Flash Your ChartsSupport for Standards
This example demonstrates 4D's ability to use external PHP libraries to add functionality to any application.

In this case, we use PHP and Flash to illustrate and animate charts based upon 4D data.

 

Download for Windows or Mac 

 

*As of 4D v12.0, the PHP Execute command will not run if 4D is installed in the "Program Files" directory and  you are not the administrator of the machine. This is fixed for v12.1 (and in 12.0 Hotfix 1 if you are a Partner). As a workaround, you must "Run as administrator." More details can be found in this Tech Tip: http://kb.4d.com/search/assetid=76116

Hierarchical ListsUser Interface
This application demonstrates how to use a hierarchical list in 4D.

The hierarchical list in this example is built dynamically when you click on the 'expandable' elements.

 

Download for Windows or Mac

 

Included ListsUser Interface
This application demonstrates the new possibilities that included lists offer.

In this example, four lists that belong to four different tables are displayed in the same form.

 

The contents of these lists are calculated based on the user's selection.

 

Download for Windows or Mac

Integrated, Native SQLDatabase
4D's database engine and development environment feature integrated, native SQL.

The 4D 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.

 

Download for Windows or Mac

 

Rich Text AreaUser Interface
This example demonstrates the use of the Rich Text Area component to edit styled text within a 4D database.

Download for Windows or Mac

SVG GoodiesSupport for Standards
The SVG Goodies application offers several methods that take advantage of 4D's integrated SVG image capabilities.

These methods include image rotation, creating reflections, and more, and can be used in your own projects freely.

 

Download for Windows or Mac

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

It also shows the conversion of characters when using the Uppercase and Lowercase functions, as well as 4D's capacity to convert from one standard to another (i.e. ISO-8859-1 to UTF16) via intermediary BLOBs.

 

Download for Windows or Mac

 

4D Indexes
This example database 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.
 

Download for Windows or Mac

 

4D Mailing
This database 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

 

4D Objects
This example database shows all the interface objects managed by 4D.


These include:

 

- variables
- buttons
- field lists
- checkboxes
- etc.

 

To use it, you can click on the buttons representing the Form editor tool bar or you can select a specific type of object directly from a dropdown menu.

 

Download for Windows or Mac

 

4D Passwords (User Management)
This database shows how to manage users by programming.


It allows you to:

 

- save and restore users and their passwords (encrypted)
- use a customized connection dialog box
- remove or create new users
- create additional information for a user (icon, visibility, etc.)

 

Download for Windows or Mac

 

4D Static Web Builder
This database shows how to publish a relational database on the Web both statically and dynamically.

 

It also shows how to transfer via FTP the generated static web site using the 4D Internet Commands plug-in. Additional information is provided when running the demo.

 

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.

 

Download for Mac or Windows

 

Hierarchical and Included Lists
These examples illustrate the use of two types of lists in 4D v11 SQL.


Hierarchical List

This database shows the possibilities of using a hierarchical list:


- display of items of the list of colors
- multiple selections allowed
- events used: "On Expand", "On Collapse" and "On Selection Change"
- dynamically built lists
- icons from resources, object library or variables

 

Included List

This database show the possibilities of included lists:

 

- calculated content updated according to the selections
- 4D v11 SQL customized interface (alignment, font style, etc.)
- graphic object replaces color of current selection
- display of contents of several tables in one form

 

Download for Windows or Mac

 

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.


One example illustrates a simple query (which consists of finding the airports of a specific city and country).

 

A second example illustrates a join (which consists of finding from among a selection of airports those that can be accessed via a direct flight).

 

A third illustrates a complex SQL query written simply using the 4D language. 

 

A fourth example shows a complex 4D query illustrating "nested" queries in 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 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

 

SVG Goodies
This example database 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

 

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

 

Unicode Support
This database 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

 

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

 

4D Contacts List Box
This database shows you how to use the new "List Box" object with and without programming.


The "List Box" object replaces grouped arrays on your forms.

 

Download for Windows Download for Mac

 

4D Integration and Infopath
Use 4D as a backend server to Infopath's rich front end forms.


Export record information to Excel, Address Book, and iCal for Mac OS, and Excel, Outlook and Word for Windows. Infopath on Windows only.

 

Download for Windows Download for Mac

 

4D Objects
This database demonstrates almost all of 4D's interface objects (variables, buttons, hierarchical lists, fields, checkboxes, etc).

 

Download for Windows Download for Mac

 

AIM (Instant Messaging)
This demo connects to a 4D Business Kit store to retrieve latest order information. It also connects to the AOL Instant Messenger service.


Through AIM, you can execute commands in your 4D application.

  

Download for Windows Download for Mac

 

Amazon
Query the Amazon server based on author, musical artist, or film actor.

 

Download for Windows Download for Mac

 

Backup Preferences
Edit any database's backup preferences.

 

Download for Windows Download for Mac

 

BLOBit
BLOBit allows a user to import any file, application or folder into a 4D database for archiving.


Files can then be extracted either individually or in groups. All Mac OS and Windows file types are supported.  On Mac OS, a thumbnail is automatically extracted from any picture files which contain one.

 

This database allows you to import a file, application, or the contents of a folder into 4D and storing the data in fields.

 

Depending on the platform the creator code, type, size etc. are stored as well. On Mac OS a thumbnail will be extracted and displayed (if present) for most picture format files.

 

Download for Windows Download for Mac

 

Catalog Tool
This example database demonstrates a way to keep track of your backups.


In reality, you can use it to catalog any volume; but it was originally designed to catalog backup CDs.

 

Download for Windows Download for Mac

 

FedEx
Retrieve parcel tracking information with a Fed Ex tracking number.

 

Download for Windows Download for Mac

 

Filemaker Conversion
Convert Filemaker databases that use Web layouts and CDML tags into 4D databases that use 4D ACTION tags.

 

Download for Windows Download for Mac

 

FTP Client
This example database is a working FTP Client that can be used to connect to any FTP Server.


The FTP connection between 4D and an FTP Server is done through the FTP commands that are provided through the 4D Internet Commands.

 

Download for Windows Download for Mac

 

Google
Accept search queries and retur results from the Google search engine.

 

Download for Windows Download for Mac

 

Hierarchical Lists
This database demonstrates how to use a hierarchical list.


It includes the ability to change the color of various elements, making multiple selections, and three new events: "On Expand," "On Collapse," and "On Selection Change."

 

Download for Windows Download for Mac

 

iCal and Address Book
Demonstrates integration between 4D, iCal and Address Book.


Download for Mac

 

Image Masks
How to build sophisticated, graphical applications using image masks in 4D.

 

Download for Windows Download for Mac

 

Included Lists
This database demonstrates the new possibilities offered by Included Lists.

 

Download for Windows Download for Mac

 

Keynote Real Estate
Integration with Apple's Keynote presentation software.

 

Download for Mac

 

Keynote Template
Integration with Apple's Keynote presentation software. Includes a component and object library that users can drop into existing databases.


Download for Mac
 

PDFs with Adobe Form Designer
Generate PDF Form data based on forms you create using Adobe Form Designer and using records from your database.


Download for Windows

 

QuickTime SMIL
Learn how to create SMIL presentations from this demo by using SAX XML parsing and creation commands.

 

Download for Windows Download for Mac

 

RSS Server
Use your database as an RSS server by following this example.

 

Download for Windows Download for Mac

 

SVG
Demonstrates SVG graphing in 4D through the use of XSLT commands.

 

Download for Windows Download for Mac

 

Terra Server
A mapping application that displays the integration of 4D with .NET applications.


 

Download for Windows Download for Mac

 

User Forms
This database demonstrates a new way to edit a form in the custom environment.

 

Download for Windows Download for Mac

 

User Modifiable Forms
Demonstrates the use of editable forms.


This example covers the commands EDIT FORM, CREATE FORM and DELETE FORM, as well as Editable Form preferences in the property list.

 

Download for Windows Download for Mac

 

USPS Shipping Rate Calculator
This database shows how 4D can be used to interface to a United States Postal Service server to retrieve cost of shipping.

 

Download for Windows Download for Mac

 

WebDAV Client
This example database is a working WebDAV Client.


It can be used to connect to any WebDAV Server. The communication between the example database and a WebDAV Server is performed with the use of the 4D Internet Commands plug-in.

 

Download for Windows Download for Mac

 

XML & Hierarchical Lists
This database shows you how to import and export data in XML format.

 

Download for Windows Download for Mac

 

XML Parser
The XML Parser example is a very simple application that illustrates how to parse a valid XML document (of any size) into a hierarchical list.


The code is written so that the parsing routine can be easily moved into your own projects. It can accept an XML document pasted in via the clipboard, or loaded from disk.   

 

Download for Windows Download for Mac

 

XSLT Transformation and Office 2003
Create reusable XSL sheets and use those sheets to generate Word (Windows only), Excel, and HTML documents using exported records.

 

Download for Windows Download for Mac

 

4D Ajax for Dreamweaver Demos
A simple but rich demo database and example HTML pages to run in Adobe Dreamweaver™ CS3 (or higher) with the 4D Ajax for Dreamweaver plug-in.


It will show you just how easy it is to integrate 4D Ajax objects into web sites using Dreamweaver.

 

Download for Windows Download for Mac  

 
Dreamweaver is a registered trademark of Adobe Systems Incorporated.

 

4D Ajax Framework Demo Collection
Over 20 online demos are available to you live.


This series includes the featured Personal Planner application.

 

View online now

 

4D Jukebox
See how you can get a full-featured media player app from 4D on to the Web.


Less than ten lines of code drive this dynamic web application.
 

Download for Windows Download for Mac  

 

Contacts
A simple but very dynamic Contact Manager application.


It incorporates the Data Matrix, Data Filler, and Preset Query, as well as a mash-up with Google Maps.

 

Download for Windows Download for Mac  

 

Desktop Dashboard
This demo is a Money Exchange database containing fictional stocks and fictional stock market information.


The data is updated frequently to better simulate constantly changing information and the Dashboards are updated in real time.

 

Download for Windows Download for Mac View online now

 

iPhone Dashboard
Connect to this database via the iPhone or iPod Touch to see 4D iPhone Dashboards in action.


The demo features a sales database containing departments, employees, budgets, budget spending, and the like.

 

Download for Windows Download for Mac View online now


Username: Guest
Password: [blank]

 

SQL Admin with 4D for Flex
This Flex application lets you remotely administer a 4D v11 SQL database remotely, by virtue of your Flash-enabled browser or device.


A copy of this application is included with the product.
 

View online now


Username: administrator
Password: [blank]

 

Tech Support
Originally a Windows MDI application, this demo uses the 4D Ajax Framework Client to connect to the database for immediate use as a Web app.


No custom code was necessary for the Web portion of this demo - all customization was performed via 4D Ajax Framework's Admin tools.

 

Download for Windows Download for Mac  

 

Vacation Tracker
Losing track of time? This rich application manages your time off.


See how little source code is necessary to build a powerful, live Web application.

 

 

Download for Windows Download for Mac