Sample Solutions

Sample Solutions
You can use these solutions as a starting point for your own use; learn Servoy scripting by examining the code in the samples; and you can see how to utilize the plugins that are shipped with the product at no additional charge. All of the sample solutions listed here are included with the default download of Servoy -- and can be found in the "examples" folder inside the "solutions" folder that is inside the Servoy install directory.

By default, when you launch Servoy -- the following solutions are loaded and imported for you automatically:
  • svyCoreFunctions (an example Module)
  • svyCRM (Servoy Sample CRM)
  • svyDoc (Servoy Sample Doc Management System)
  • svyHelp (an example Module)

In addition to these examples, we have created online demo solutions that are only available here -- and are a bit more complex in nature.

Here's a brief description of the solutions that are installed by default:

The Servoy Sample CRM (filename: svyCRM) is a basic Customer Relationship Management (CRM) and invoicing solution. It contains companies, contacts, invoices and products. This solution also contains multiple tabs in tabpanels, uses a charting JavaBean along with a custom SQL query and much more. Open up the code in Tools -> Editor and have a look under the hood!

Servoy Sample CRM

The Servoy Sample Document Management System (filename: svyDoc) is a basic Document Management solution. It contains a central screen that allows you to save documents directly into the back end database and allows users to view and edit the document -- even over a WAN or the Internet. This solution also contains multiple tabs in tabpanels, uses the file plugin, displays HTML data directly in the interface and much more. Open up the code in Tools -> Editor and have a look under the hood!

Servoy Sample Document Management Solution

There are two example modules included with the examples -- "svyCoreFunctions" and "svyHelp". svyHelp is a solution that can be used either as a standalone solution and/or incorporated into other solutions (it's used in both the CRM and Document Management solutions). The svyCoreFunctions module is a centralized code module that is used by all 3 other solutions. This allows us to re-use common code between multiple solutions -- and saves tons of time and money versus re-coding common commands in every single solution over and over again.

Loading Other Example Solutions
Servoy ships with other sample solutions that are NOT installed by default. To access these example files -- open "Repository..." under the "File" menu, click "Import", double click the "examples" folder, and follow the prompts. The other examples include:
  • amortization_example
  • BookStudy
  • pdf_forms
  • photo_gallery
  • udp

Amortization Example
This basic example file shows how to use the amortization plugin to calculate a amortized payment schedule.

Book Study Example
This example demonstrates how to use the JSplitter JavaBean to create multiple re-sizeable sections of the screen. It also contains a working example of the JTree JavaBean -- a control that allows you to build a "folder" tree.

PDF Forms Example**
This example takes PDF forms that are stored inside the database and uses the PDF_forms plugin to open it in a browser. The webservice will then automatically add a "Submit" button to the form that will save the data back into the database.

Photo Gallery Example
This is a very simple example of how to show a dialog to the user, create a new record in the database and insert a graphic file (or any other file for that matter).

UDP Example
The User Datagram Protocol (UDP) is one of the core protocols of the Internet protocol suite. Using UDP, programs on networked computers can send short messages known as datagrams to one another -- and this example is a simple chat application that can be used over a LAN.

**NOTE: In order to use the PDF example, you must have checked the "PDF Support" when you installed Servoy. If you don't see "pdf_output" plugin in your list of plug-ins (in Tools -> Editor), then you didn't install it. You need to re-install Servoy (you can have multiple installs on the same machine!) -- and on the 4th install screen ("Select the options you wish to install") scroll to the bottom of the list and DO checkmark "PDF support package".