® IBM Software Group © 2006 IBM Corporation EGL/Web Project QuickStart – 2 of 4 – Creating the Business Logic Layer These slides walk you through the process.

Slides:



Advertisements
Similar presentations
JQuery MessageBoard. Lets use jQuery and AJAX in combination with a database to update and retrieve information without refreshing the page. Here we will.
Advertisements

Microsoft® Access® 2010 Training
Stored procedures and views You can see definitions for stored procedures and views in the demo databases but you can’t change them. For views, expand.
DLC-MODS Workbook 1.2 Pinky says, “Hello.” Presented by University of Tennessee Libraries Digital Library Center Melanie Feltner-Reichert, Metadata Librarian.
SQL Injection Attacks Prof. Jim Whitehead CMPS 183: Spring 2006 May 17, 2006.
® IBM Software Group © 2006 IBM Corporation Additional AJAX Examples and Workshops This learning module provides additional AJAX use cases and examples.
1 of 7 This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2007 Microsoft Corporation.
Office 2003 Introductory Concepts and Techniques M i c r o s o f t Access Project 1 Creating and Using a Database.
1 Flash Programming Introduction Script Assist. 2 Course Description This course concentrates on the teaching of Actionscript, the programming language.
® IBM Software Group © 2006 IBM Corporation EGL / SOA – Creating and Consuming EGL Web Services This Learning Module shows how to utilize the RBD tooling.
Microsoft ® Office Word 2007 Training Mail Merge II: Use the Ribbon and perform a complex mail merge [Your company name] presents:
® IBM Software Group © 2006 IBM Corporation The Eclipse Data Perspective and Database Explorer This section describes how to use the Eclipse Data Perspective,
® IBM Software Group © 2006 IBM Corporation EGL/Web Project QuickStart – 3 of 4 – Creating the U.I. Layer These slides walk you through the process of.
Creating a Web Page HTML, FrontPage, Word, Composer.
® IBM Software Group © 2006 IBM Corporation How to read/write XML using EGL This Learning Module shows how to utilize an EGL Library to read/write an XML.
® IBM Software Group © 2006 IBM Corporation JSF Tab Controls This Learning Module shows how to develop server-side EGL applications with dynamic content.
® IBM Software Group © 2006 IBM Corporation EGL Calling RPG Programs This Learning Module shows how to use EGL to call RPG programs, running on System.
Advanced Tables Lesson 9. Objectives Creating a Custom Table When a table template doesn’t suit your needs, you can create a custom table in Design view.
DAT602 Database Application Development Lecture 15 Java Server Pages Part 1.
® IBM Software Group © 2006 IBM Corporation Creating JSF/EGL Template Pages This section describes how to create.JTPL (Java Template Pages) using the Page.
SRM Community Wiki – User Guide Sign-up Edit a page Insert photo & video and other files Create pages & page menu titles Forum & commenting.
® IBM Software Group © 2006 IBM Corporation JavaScript – and EGL and.JSP Pages This learning module describes the use of JavaScript in your EGL and.JSP.
1 Working with MS SQL Server. 2 Objectives You will be able to Use Visual Studio for GUI based interactive access to a Microsoft SQL Server database.
® IBM Software Group © 2013 IBM CorporationLast Update: August 2013 Workshops RDz Workbench – Using the Data Source Explorer Workshops.
® IBM Software Group © 2006 IBM Corporation JSF Tree Control This Learning Module describes the use of the JSF Tree Control – for hierarchical organization.
® IBM Software Group © 2006 IBM Corporation EGL Programming – Data Parts and Assignment Statements – 4 – Arrays These slides walk you through the terms.
Self Guided Tour for Query V8.4 Basic Features. 2 This Self Guided Tour is meant as a review only for Query V8.4 Basic Features and not as a substitute.
Using Eclipse. What is Eclipse? The Eclipse Platform is an open source IDE (Integrated Development Environment), created by IBM for developing Java programs.
Microsoft Office 2003: Advanced 1 ADVANCED MICROSOFT ACCESS Lesson 17 – Utilizing Advanced Management Tools.
Moodle (Course Management Systems). Assignments 1 Assignments are a refreshingly simple method for collecting student work. They are a simple and flexible.
Creating a Web Site to Gather Data and Conduct Research.
Chapter Three The UNIX Editors. 2 Lesson A The vi Editor.
1 Working with MS SQL Server Textbook Chapter 14.
© FPT SOFTWARE – TRAINING MATERIAL – Internal use 04e-BM/NS/HDCV/FSOFT v2/3 Working with MSSQL Server Code:G0-C# Version: 1.0 Author: Pham Trung Hai CTD.
® IBM Software Group © 2006 IBM Corporation “Essential” HTML Tags and Page Development Techniques This Learning Module describes the standard HTML tags.
Chapter 7 File I/O 1. File, Record & Field 2 The file is just a chunk of disk space set aside for data and given a name. The computer has no idea what.
10 August 2005Benchmark/Mentor Student Guide Page 1 CPS Benchmark/Mentor Student Guide Internet Edition.
® IBM Software Group Appendix C - Code Reuse - Program Templates - Code Snippets - Code Templates.
® IBM Software Group © 2006 IBM Corporation Individual Cell Coloring – in a JSF dataTable Control You may need to programmatically (using EGL) change the.
Overview of Form and Javascript fundamentals. Brief matching exercise 1. This is the software that allows a user to access and view HTML documents 2.
® IBM Software Group © 2006 IBM Corporation EGL Programming Model These slides walk you through the concepts and vocabulary the make up the Enterprise.
® IBM Software Group © 2006 IBM Corporation Using JSF Mini-Calendar Controls This section describes how to use a JSF Mini-Calendar Control with EGL It.
® IBM Software Group © 2006 IBM Corporation Web JSF Overview – RBD Tooling – for Web Development This unit introduces you to the aspects of the RBD tooling.
My Presentations Create new presentations and find the ones you’ve worked on before. Your progress is saved automatically as you work. Undo Anything.
HTML Concepts and Techniques Fifth Edition Chapter 4 Creating Tables in a Web Site.
® IBM Software Group © 2006 IBM Corporation Finding Out Which Submit Button Was Clicked – and Other JSF Command Button Techniques This section describes.
® IBM Software Group © 2006 IBM Corporation EGL/Web Project QuickStart – 1 of 4 – Creating the Data Access Layer These slides walk you through the process.
® IBM Software Group © 2006 IBM Corporation JSF Panel – Section Controls This Learning Module shows how to develop server-side EGL applications with dynamic.
® IBM Software Group © 2006 IBM Corporation JSF Rich Text Area Component This Learning Module describes the use of the JSF Rich Text Area component – for.
HTML Concepts and Techniques Fifth Edition Chapter 3 Creating Web Pages with Links, Images, and Formatted Text.
1 Project 2: Using Variables and Expressions. 222 Project 2 Overview For this project you will work with three programs Circle Paint Ideal_Weight What.
When the program is first started a wizard will start to setup your Lemming App. Enter your company name and owner in the fields designated “Company Name”
® IBM Software Group © 2006 IBM Corporation Dependent Combo-Box U.I. Development This Learning Module walks you through the options and development techniques.
1 of 6 This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2007 Microsoft Corporation.
Creating a database - I clicked on blank database and am saving it as books10.mdb. For more information see the practice example under week #1. I am going.
Editing and Debugging Mumps with VistA and the Eclipse IDE Joel L. Ivey, Ph.D. Dept. of Veteran Affairs OI&T, Veterans Health IT Infrastructure & Security.
Programming with Microsoft Visual Basic 2012 Chapter 14: Access Databases and SQL.
 Visit  Enter your NetID and Password  Click ‘Sign In”
© 2015 Ex Libris | Confidential & Proprietary Yoel Kortick Senior Librarian Cataloging introductory flow.
® IBM Software Group © 2006 IBM Corporation EGL.CSV (Excel) File Reading and Writing This section describes how to access.CSV (Excel Spreadsheet) files.
® IBM Software Group © 2006 IBM Corporation Create EGL/JSF HelloWorld Pages This learning module walks you through the process of creating two simple “hello.
Cataloging introductory flow
The SMS Query Menu System for the iSeries
CERNER MILLENNIUM Letters & Faxing
How to Run a Java Program
The National Reference Metadata Editor (NRME)
Running a Java Program using Blue Jay.
EGL / SOA – Concepts and Creating/Consuming Local Services
The National Reference Metadata Editor (NRME)
Presentation transcript:

® IBM Software Group © 2006 IBM Corporation EGL/Web Project QuickStart – 2 of 4 – Creating the Business Logic Layer These slides walk you through the process of creating a simple C.R.U.D. (Create, Read, Update and Delete) dynamic data content web application. This section shows you how to use the EGL language to create a new function, in a protected area of a data access library.

2 UNIT  Development Model – Terms and Concepts  Importing Database Schema Creating Custom Business Logic  Creating Custom Business Logic  Creating the U.I. Model  Creating Dynamic Content Web Pages Topics: EGL/Web QuickStart

3 The EGL Project Model – Where we are, from 10,000 Feet  After generating the Data Access model – and customizing the SQL statements and DatatItems, you will probably begin coding your business logic. We say probably, because you could do this in parallel with Data Access Modeling – so the order of the steps is not dependent. It’s only convenient to discuss it as such for this simple web application.  For your business logic you may want to create:  Services or Web Services  Services or Web Services – to move towards a Service Oriented Architecture  Libraries  Libraries – to hold independent, granular business logic functions  Programs  Programs – to hold larger-scale business logic (reports, calls to the mainframe, etc.)  We will be covering all of these types of EGL logic parts in the Unit that follows the QuickStart, for now, we’ll create a simple new function in Library – so that you get the 10,000 foot view. 2. Custom Business Logic 1. Data Access Model 3. U.I. Model 4. Page Development

4 Create EGL Business Logic  Follow the steps beginning on the next slide to create the following simple test for zip code. The steps are:  Edit an existing library  Copy/Paste an existing function  Modify the function name and parameter  Use Content Assist to add new business logic  Save and Generate Note: Note: In this workshop you will create this simple business logic function inside of an existing library. But the same process and simple EGL programming model will be used (as you’ll see in the next Unit on the EGL Language) to: Create a service or Web Service Consume (call a service or Web Service) Call an external program: Mainframe COBOL or RPG Java or C++ class

5 Adding Custom EGL to Generated Code  Throughout the course (and especially in your production projects) you will add lots of custom EGL to the library code generated by the data access application wizard.  You may be asking yourself: “What if my database schema changes and I have to re- import the database?”  Rest assured, there is a way to re-import part or all of your database schema definitions without losing any custom defined code work you’ve done.  Scroll to the bottom  Scroll to the bottom of any of the generated EGL files.  You should see some commented text  Notice an area of comments which indicate that you should: “Add additional code here”  Add all of your custom code at this location between: // BEGIN – and – // END //BEGIN custom function definitions …your new custom EGL code and functions go here… //END custom function definitions ***Notes  By doing this, you can re-import your entire database or that specific table and not have to worry about losing your custom EGL functions. ***Notes

6  Copy and Paste a Function From Project Explorer, 1. Open CustomerLib.egl isValid 2. Scroll down to near the end, and find the function named: isValid 3. Select the entire function (the three lines shown)  Copy (Ctrl/C) Paste (Ctrl/V) …….and Paste (Ctrl/V) as shown here  Below: //TODO: Add additional code here end Above the final end statement in the file  This will duplicate the function in the library – in the area where you can add custom functions (which won’t be over-written)

7  Use Content Assist to Modify an EGL Function - 1 of 2  You will use the EGL Editor’s “Content Assist” to modify the function by following these steps. Note that Content Assist is an “intelligent editor” – it allows you to select some value that makes sense to code within the context of EGL business logic. 4. Change the function name and input parameter  5. Enter a new line if  Type the word: if Ctrl+Spacebar  Immediately press Ctrl+Spacebar ifelse-if else statement –Select ifelse-if else statement  if  This will create a templated if statement   The selected condition means that Content Assist Ctrl/Spacebar is still active (press Ctrl/Spacebar, select a variable name) And of course you can simply edit/type at will 

8 savegenerate 6. Using Content Assist or just plain old editing/typing, complete, save and generate the function as shown below. To save and generate:  Ctrl/S  Ctrl/S saves and validates your EGL statements  Note – if you make any typos, small red x’s will appear in your source next to the line in question. –Mouse-over the red-x’s to see a detailed explanation of the problem. Correct it. Press Ctrl/S again, and continue.  Ctrl/G  Ctrl/G generates Java (assuming that the EGL parser found no syntax errors when you pressed Ctrl/S)  Finished Function  Use Content Assist to Modify an EGL Function - 2 of 2

9  Now that you have completed this topic, you should have:  Coded EGL Business logic by;  Editing an existing Library function  Duplicating a function, and using it as the basis for new business logic  (Using Content Assist) created a new logic function that tests a field for all numeric values, and returned a true/false  Saved and Generated Java Topic Summary