Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Scout/Tutorial/minicrm"

Line 13: Line 13:
 
Now we need to tell the application how to contact the database. How this works is described  {{ScoutLink|Tutorial|minicrm/Set_up_SQL_Service|here}}.
 
Now we need to tell the application how to contact the database. How this works is described  {{ScoutLink|Tutorial|minicrm/Set_up_SQL_Service|here}}.
 
== Write the first Page ==
 
== Write the first Page ==
A standard Eclipse Scout application consists of pages in a tree structure. A page typically shows data in some sort of table. If you write an application, you need to start with a page. {{Scout|Tutorial|minicrm/Write_The_First_Page|Learn more}}
+
A standard Eclipse Scout application consists of pages in a tree structure. A page typically shows data in some sort of table. If you write an application, you need to start with a page. {{ScoutLink|Tutorial|minicrm/Write_The_First_Page|Learn more}}
  
 
You should have a tiny Eclipse Scout application running at the end of this step!
 
You should have a tiny Eclipse Scout application running at the end of this step!
Line 27: Line 27:
 
== Add a search form ==
 
== Add a search form ==
 
We created a page with a table listing all the companies in the database. Add a search form that allows users to limit the number of rows returned.
 
We created a page with a table listing all the companies in the database. Add a search form that allows users to limit the number of rows returned.
{{Scout|Tutorial|minicrm/Add_A_Search_Form| Learn more}}
+
{{ScoutLink|Tutorial|minicrm/Add_A_Search_Form| Learn more}}
 
== Add a form to edit the data ==
 
== Add a form to edit the data ==
In order to edit the data in our page, we need to create a context menu to call a form, create the form and the process service it needs to actually select, insert, update (and possibly delete) the data. {{Scout|Tutorial|minicrm/Add_A_Form_To_Edit_The_Data|Learn more}}
+
In order to edit the data in our page, we need to create a context menu to call a form, create the form and the process service it needs to actually select, insert, update (and possibly delete) the data. {{ScoutLink|Tutorial|minicrm/Add_A_Form_To_Edit_The_Data|Learn more}}
  
 
== Write the second page ==
 
== Write the second page ==
  
We wrote the company table page, now let's write a top-level person table page. Once we have that, we want to '''reuse the table page''' by also using it as a child page for a company. {{Scout|Tutorial|minicrm/Write_The_Second_Page|Learn more}}
+
We wrote the company table page, now let's write a top-level person table page. Once we have that, we want to '''reuse the table page''' by also using it as a child page for a company. {{ScoutLink|Tutorial|minicrm/Write_The_Second_Page|Learn more}}
  
 
You will end up with the following tree structure for your application:
 
You will end up with the following tree structure for your application:
Line 47: Line 47:
 
== Reorganize the tree and add a webservice ==
 
== Reorganize the tree and add a webservice ==
 
{{note|Under construction|This part is under construction }}
 
{{note|Under construction|This part is under construction }}
{{ScoutLink|Scout|Tutorial|minicrm/Reorganize_The_Tree_And_Add_A_Webservice|Link}}
+
{{ScoutLink|Tutorial|minicrm/Reorganize_The_Tree_And_Add_A_Webservice|Link}}
 
== Code Types ==
 
== Code Types ==
{{note|Under construction|This part is under construction }}{{ScoutLink|Scout|Tutorial|minicrm/Code_Types|Link}}
+
{{note|Under construction|This part is under construction }}{{ScoutLink|Tutorial|minicrm/Code_Types|Link}}

Revision as of 08:35, 19 May 2011

The Scout documentation has been moved to https://eclipsescout.github.io/. Mini CRM Tutorial

With this tutorial, you'll create a little example application with The Scout documentation has been moved to https://eclipsescout.github.io/., where you can enter and edit companies.

Requirements

This tutorial assumes that you have installed Scout SDK as described in The Scout documentation has been moved to https://eclipsescout.github.io/.

Create New Scout Project

Creating new scout projects is described The Scout documentation has been moved to https://eclipsescout.github.io/.. That page also shows how to launch the server and the client.

Get example Database

Follow the instructions on The Scout documentation has been moved to https://eclipsescout.github.io/. to get our small Apache Derby example database.

Set up SQL Service

Now we need to tell the application how to contact the database. How this works is described The Scout documentation has been moved to https://eclipsescout.github.io/..

Write the first Page

A standard Eclipse Scout application consists of pages in a tree structure. A page typically shows data in some sort of table. If you write an application, you need to start with a page. The Scout documentation has been moved to https://eclipsescout.github.io/.

You should have a tiny Eclipse Scout application running at the end of this step!

You will end up with the following tree structure for your application:

Standard Outline
 │
 └─Company Table Page

Very simple indeed!

Add a search form

We created a page with a table listing all the companies in the database. Add a search form that allows users to limit the number of rows returned. The Scout documentation has been moved to https://eclipsescout.github.io/.

Add a form to edit the data

In order to edit the data in our page, we need to create a context menu to call a form, create the form and the process service it needs to actually select, insert, update (and possibly delete) the data. The Scout documentation has been moved to https://eclipsescout.github.io/.

Write the second page

We wrote the company table page, now let's write a top-level person table page. Once we have that, we want to reuse the table page by also using it as a child page for a company. The Scout documentation has been moved to https://eclipsescout.github.io/.

You will end up with the following tree structure for your application:

Standard Outline
 │
 ├─Company Table Page
 │  │
 │  └─Person Table Page
 │
 └─Person Table Page

Reorganize the tree and add a webservice

Note.png
Under construction
This part is under construction

The Scout documentation has been moved to https://eclipsescout.github.io/.

Code Types

Note.png
Under construction
This part is under construction

The Scout documentation has been moved to https://eclipsescout.github.io/.

Back to the top