Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "EDT:Tutorial: RUI With DataBase Lesson 5"
(New page: Access a database with EGL Rich UI {| style="float: right" |< Previous | [[EDT:Tutor...) |
|||
Line 36: | Line 36: | ||
services | services | ||
− | <li>Verify that '''Create | + | <li>Verify that |
− | as web (REST) service''' are | + | '''Create as web (REST) service''' are unchecked, and leave the '''Implements |
Interfaces''' field empty. [[Image:EDT_Tutorial_edt_richui_sql04_new_service.jpg|The New EGL Service Part window shows the service name and package.]] | Interfaces''' field empty. [[Image:EDT_Tutorial_edt_richui_sql04_new_service.jpg|The New EGL Service Part window shows the service name and package.]] | ||
Line 45: | Line 45: | ||
opens the new Service part in the editor. | opens the new Service part in the editor. | ||
<li>Remove the code from the file, leaving only the following | <li>Remove the code from the file, leaving only the following | ||
− | lines: | + | lines:<code> |
+ | package services; | ||
− | + | service SQLService | |
− | + | ||
− | service SQLService | + | |
− | + | ||
− | + | ||
+ | end | ||
+ | <code/> | ||
<li>Save the file, but do not close it. | <li>Save the file, but do not close it. | ||
</ol> | </ol> |
Revision as of 13:59, 28 November 2011
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:
- In the Project Explorer window, right-click PaymentService, and then click New > Service.
- In the New EGL Service Part window, enter the following information:
- Click Finish. EGL opens the new Service part in the editor.
- Remove the code from the file, leaving only the following
lines:
package services; service SQLService end <code/>
- Save the file, but do not close it. </ol>
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 > - Save the file, but do not close it. </ol>