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

EDT:Tutorial: RUI With DataBase Lesson 5

Revision as of 13:51, 28 November 2011 by Hoffmanp.us.ibm.com (Talk | contribs) (New page: Access a database with EGL Rich UI {| style="float: right" |< Previous | [[EDT:Tutor...)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Access a database with EGL Rich UI


< Previous | Next >

Lesson 5: Create the service

Create a dedicated service to access the database.

In this lesson, you create an EGL Service part, which is a generatable part. You must place each generatable part in a separate source file, and the name of the part must be the same as the name of the file.

Create a Service part

To create a Service part:


  1. In the Project Explorer window, right-click PaymentService, and then click New > Service.
  2. In the New EGL Service Part window, enter the following information:
    1. In the EGL source file name field, enter the following name: SQLService EGL adds the .egl file extension automatically.
    2. In the Package field, enter the following name: services
    3. Verify that Create as web (SOAP) service and Create as web (REST) service are cleared, and leave the Implements Interfaces field empty. The New EGL Service Part window shows the service name and package.
  3. Click Finish. EGL opens the new Service part in the editor.
  4. Remove the code from the file, leaving only the following lines: package services; service SQLService end
  5. Save the file, but do not close it.

Lesson checkpoint

You learned how to create an EGL Service part.

In the next lesson, you add code for the functions to SQLService.


Related reference

[../../com.ibm.egl.pg.doc/topics/pegl_core_service_part_cpt.html Services: a top-level overview]


< Previous | Next >

Back to the top