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

Scout/Tutorial/3.7/Minicrm Step-by-Step

Prerequisites

  1. Have a look at the EclipseScout Client Component Model: Main Concepts

Installation / Set Up

  1. Download Scout and Unzip it
  2. Download DerbyDb and Unzip it
  3. Start EclipseScout

Create a new EclipseScout project

  1. If you haven't done so yet, change to the Scout perspective. On the folder Scout Projects, right click and choose New Scout Project in order to create a new Scout project.
    The context menu to create a new Scout Project


    As project name, enter eclipse.org.minicrm.
    The wizard to create a new Scout Project


    What the project tree should like after you have created your project

  2. Start Server: Click on the server node and start the development server product by clicking on the green arrow.
    ServerProduct.jpg

  3. Test Server: To test if the server is running properly, go to http://localhost:8080/minicrm/process. To log in, use admin as username and manager as password. There you should see a page with information about the server. The login information is defined in the config.ini file of the server product, click on open product and then change to the configuration tab in order to open it.
    ServerProductConfiguration.jpg

  4. Start Client: Click on either the ui.swing or the ui.swt node and start the development client product by clicking on the green arrow. When asked for a login, enter the same login information as before, admin/manager (or any other user/password pair from the config.ini). An empty application window should appear.
Minicrm.jpg

Add the SqlService

  1. Go to the server node and open the tree, drill down until Sql Services below Common Services and right click in order to open the wizard to create a new SQL service.
    SqlServiceWizard.jpg

    Name your new service DerbySqlService and choose AbstractDerbySqlService from the combobox Super Type then click finish.
    Newsqlservice.jpg


  2. Adjust the default settings in your DerbySqlService by editing the Jdbc Mapping Name, this should point to the folder where you unzipped the DerbyDb to.
    Derbysql.jpg

Create an Outline

  1. New Outline
  2. New Table
  3. Add Columns
  4. getConfiguredDisplayable vs. getConfiguredVisible
  5. The DB tables: Company.jpgPerson.jpg
  6. Get Data for Table
  7. BindBases

Create a Form

  1. New Form
    1. FormHandler
    2. ProcessService
    3. FormData
  2. SQL.selectInto

Start the Form

  1. New Menu
  2. execAction

Modify the Form

  1. Validation
  2. Formatting
  3. Changing Background or Foreground

Extend the Form

  1. Smartfield
  2. HtmlField
  3. Button

Create a SearchForm

Expand the Tree

  1. NodePage

Bing Webservice

Shared Context

  1. Scope
  2. execLoad
  3. Add variables

Back to the top