RESOURCES

EXAMPLE APPLICATIONS

warning: Invalid argument supplied for foreach() in /var/www/www.4d.com/docs/sites/all/modules/cck/content.module on line 1278.

4D IndexesDesign Environment
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.
 

Download for Windows or Mac

 

4D MailingExtensions
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 Design Environment
This example 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)Server
This example 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 BuilderServer
This example 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 FormsRunning Applications
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 ListsDesign Environment
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 SQLDesign Environment
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 StalkerDesign Environment
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 ClockExtensions
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 GoodiesExtensions
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

 

Theatre Seating Plan (SVG)Extensions
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 SupportRunning Applications
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

 

Web AreaDesign Environment
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 BoxDesign Environment
This example 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 InfopathApplication mode/Data Access
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 ObjectsDesign Environment
This example demonstrates almost all of 4D's interface objects (variables, buttons, hierarchical lists, fields, checkboxes, etc).

 

Download for Windows Download for Mac

 

AIM (Instant Messaging)Application mode/Data Access
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

 

AmazonApplication mode/Data Access
Query the Amazon server based on author, musical artist, or film actor.

 

Download for Windows Download for Mac

 

Backup PreferencesRunning Applications
Edit any database's backup preferences.

 

Download for Windows Download for Mac

 

BLOBitApplication mode/Data Access
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 ToolDesign Environment
This example 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

 

FedExApplication mode/Data Access
Retrieve parcel tracking information with a Fed Ex tracking number.

 

Download for Windows Download for Mac

 

Filemaker ConversionApplication mode/Data Access
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 ClientApplication mode/Data Access
This example application 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

 

GoogleApplication mode/Data Access
Accept search queries and return results from the Google search engine.

 

Download for Windows Download for Mac

 

Hierarchical ListsDesign Environment
This example 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 BookApplication mode/Data Access
Demonstrates integration between 4D, iCal and Address Book.


Download for Mac

 

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

 

Download for Windows Download for Mac

 

Included ListsDesign Environment
This example demonstrates the new possibilities offered by Included Lists.

 

Download for Windows Download for Mac

 

Keynote Real EstateApplication mode/Data Access
Integration with Apple's Keynote presentation software.

 

Download for Mac

 

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


Download for Mac
 

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


Download for Windows

 

QuickTime SMILApplication mode/Data Access
Learn how to create SMIL presentations from this demo by using SAX XML parsing and creation commands.

 

Download for Windows Download for Mac

 

RSS ServerServer
Use your application as an RSS server by following this example.

 

Download for Windows Download for Mac

 

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

 

Download for Windows Download for Mac

 

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


 

Download for Windows Download for Mac

 

User FormsRunning Applications
This example demonstrates a new way to edit a form in the custom environment.

 

Download for Windows Download for Mac

 

User Modifiable FormsRunning Applications
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 CalculatorClient
This application 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 ClientClient
This example application 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 ListsApplication mode/Data Access
This example shows you how to import and export data in XML format.

 

Download for Windows Download for Mac

 

XML ParserDesign Environment
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 2003Application mode/Data Access
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 Framework Demo CollectionApplication mode/Data Access
Over 20 online demos are available to you live.


This series includes the featured Personal Planner application.

 

View online now

 

4D JukeboxRunning Applications
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  

 

ContactsDesign Environment
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 DashboardRunning Applications
This demo is a Money Exchange application 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 DashboardApplication mode/Data Access
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 FlexApplication mode/Data Access
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 SupportApplication mode/Data Access
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 TrackerRunning Applications
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