1 You’ve Got Mail Mark Castaldo, STR LLC Leslie M. Tierstein, STR LLC.

Slides:



Advertisements
Similar presentations
Accel Computerized Maintenance Management System.
Advertisements

Little Used, but Powerful Features with GP Cathy Fregelette, CPA, PMP Practice Manager BroadPoint Technologies September 20, 2012.
Appraisal, Acquisition & Relocation System (AARS) REAL ESTATE SECTION LOUISIANA DEPARTMENT OF TRANSPORTATION AND DEVELOPMENT.
Development of a Web-based, Multimedia Database for Collection, Organization and Analysis of Biomedical Signals M.S.C.S. Problem Report Defense Lan Guo.
Guide to Oracle10G1 Introduction To Forms Builder Chapter 5.
J4www/jea Week 3 Version Slide edits: nas1 Format of lecture: Assignment context: CRUD - “update details” JSP models.
A Guide to Oracle9i1 Introduction To Forms Builder Chapter 5.
Interpret Application Specifications
A Guide to SQL, Seventh Edition. Objectives Embed SQL commands in PL/SQL programs Retrieve single rows using embedded SQL Update a table using embedded.
SiS Technical Training Development Track Technical Training(s) Day 1 – Day 2.
Chapter 7 Managing Data Sources. ASP.NET 2.0, Third Edition2.
Series DATA MANAGEMENT. 1 Why ? Alarm/Status Notification –Remote unattended sites »Pumping stations –Pharmaceutical/Plant maintenance.
Introduction to PL/SQL Lecture 0 – Self Study Akhtar Ali.
Dynamics AX Technical Overview Application Architecture Dynamics AX Technical Overview.
07/19/04 NorCal OAUG Training Day, Paper 2.4 John Peters, JRPJR, Inc.1 Oracle Workflow Notifications John Peters JRPJR, Inc.
Mail Merge. One very useful feature of Microsoft Office is the Mail Merge feature. As an example of its use, suppose you want to send out application.
Portal and AQAS-Philadelphia University 21-22/6/2011 AVCI Platform in PU Dr. Abdel-Rahman Al-Qawasmi Philadelphia University Director of Computer Center.
Learning series creating agency users virtual classroom.
Pasewark & Pasewark 1 Outlook Lesson 1 Outlook Basics and Microsoft Office 2007: Introductory.
Basics of Web Databases With the advent of Web database technology, Web pages are no longer static, but dynamic with connection to a back-end database.
What’s New in VRS? GUGM May 15, 2008 Presenter: Kelly P. Robinson GIL Service Georgia State University
CPT 499 Internet Skills for Educators Electronic Mail Session Five.
Microsoft Outlook 2007 Basics Distance Learning (860) 343 – 5756 Chapman 633/632 Middlesex Community College Visit
MAIL MERGE Designing Documents with. Terms Mail Merge: A process that inserts variable information into a standardized document to produce a personalized.
Database Security and Auditing: Protecting Data Integrity and Accessibility Chapter 6 Virtual Private Databases.
OracleAS Reports Services. Problem Statement To simplify the process of managing, creating and execution of Oracle Reports.
Hashim, Mike, Connor. It allows the user to combine a document with a data file to send form letters to many recipients. Each letter is personalized for.
DBA’s, Oracle Designer and the Development Life Cycle By Peter Wilkinson, Mercury International Ltd. Leslie Tierstein, SCI Consulting, Inc.
Empowering the User Custom Web Reporting M. Keener & R. Kolatalo | Thursday, March 1, 2012.
The Internet 8th Edition Tutorial 2 Basic Communication on the Internet: .
Let VRS Work for You! ELUNA Conference 2008 Presenter: Kelly P. Robinson GIL Service Georgia State University
13-1 Application Architecture Application architecture – a specification of the technologies to be used to implement information systems. The blueprint.
PHP and MySQL CS How Web Site Architectures Work  User’s browser sends HTTP request.  The request may be a form where the action is to call PHP.
SQL Server 2005 Reporting Services: Product Overview Niran Luckcanakul (MCSD, MCDBA, MCT) Project manager ISONET Co.,Ltd.
Introduction to Databases Trisha Cummings. What is a database? A database is a tool for collecting and organizing information. Databases can store information.
Database Design Week 11.
XP New Perspectives on Integrating Microsoft Office XP Tutorial 3 1 Integrating Microsoft Office XP Tutorial 3 – Integrating Word, Excel, Access, and PowerPoint.
Guide to Oracle 10g ITBIS373 Database Development Lecture 4a - Chapter 4: Using SQL Queries to Insert, Update, Delete, and View Data.
SQL Fundamentals  SQL: Structured Query Language is a simple and powerful language used to create, access, and manipulate data and structure in the database.
What is a Package? A package is an Oracle object, which holds other objects within it. Objects commonly held within a package are procedures, functions,
Texas State Technical College DISCOVER! Cartesian Product Cover all the bases.
3 Copyright © 2004, Oracle. All rights reserved. Working in the Forms Developer Environment.
System Overview 18 March I-Suite is An Automated Incident Business Information and Support Tool Written as a Portable Client/Server Application.
BlackBerry Applications using Microsoft Visual Studio and Database Handling.
Application Development
Strictly Business Using “StrictlyFused” to Create an Extensible Knowledge Portal.
Dynamic SQL. 2 home back first prev next last What Will I Learn? Recall the stages through which all SQL statements pass Describe the reasons for using.
IN THE NAME OF GOD. Reference Citing Software.
Chapter 5 Introduction To Form Builder. Lesson A Objectives  Display Forms Builder forms in a Web browser  Use a data block form to view, insert, update,
PL/SQLPL/SQL Oracle11g: PL/SQL Programming Chapter 10 Oracle-Supplied Packages, Dynamic SQL, and Hiding Source Code.
Amanda Fristy Damara Thea Bayu Gerhana Yuda Evita Fitri Ila Uswatun Hasanah Putri Ayuning Kartika Presented by :
© 2007 by Prentice Hall2-1 Introduction to Oracle 10g Chapter 2 Overview of SQL and SQL*Plus James Perry and Gerald Post.
Chapter 6 Virtual Private Databases
Text TCS INTERNAL Oracle PL/SQL – Introduction. TCS INTERNAL PL SQL Introduction PLSQL means Procedural Language extension of SQL. PLSQL is a database.
CHAPTER 7 LESSON C Creating Database Reports. Lesson C Objectives  Display image data in a report  Manually create queries and data links  Create summary.
Database Form Processing Made Easy Chad Killingsworth Web Projects Coordinator.
How to Leverage Java in Oracle Forms Web Applications Duncan Mills Application Development Tools Oracle Corporation.
Preface IIntroduction Course Objectives I-2 Course Content I-3 1Introduction to Oracle Reports Developer Objectives 1-2 Business Intelligence 1-3 Enterprise.
Lesson 17 Mail Merge. Overview Create a main document. Create a data source. Insert merge fields into a main document. Perform a mail merge. Use data.
9 Copyright © 2004, Oracle. All rights reserved. Getting Started with Oracle Migration Workbench.
6 Copyright © 2009, Oracle. All rights reserved. Using Dynamic SQL.
CHAPTER 7 LESSON B Creating Database Reports. Lesson B Objectives  Describe the components of a report  Modify report components  Modify the format.
Database and Cloud Security
A Guide to SQL, Seventh Edition
Chapter 6 - Database Implementation and Use
Case Management System
Chapter 10 Oracle11g: PL/SQL Programming Oracle-Supplied Packages,
How to Use Mail Merge in MS Word using MS Excel2016 Dr.D.Dhachinamoorthi Director Technology SNES.
Oracle Sales Cloud Sales campaign
Integrating Office 2013 Programs
Presentation transcript:

1 You’ve Got Mail Mark Castaldo, STR LLC Leslie M. Tierstein, STR LLC

You’ve Got Mail 2 Overview Architecture, design and code for a robust correspondence generation system – Mail merge capability – User maintainable – Multiple recipients – Multiple, user-selectable output formats

You’ve Got Mail 3 Overview (2) Functional requirements Database design Back-end code User interface

You’ve Got Mail 4 Application Grants Management system for federal agency Intranet usage over LAN and WAN for agency employees at HQ and throughout the US Internet usage for applicants for grants and current grantees

You’ve Got Mail 5 Environment Oracle 8i database (8.1.7) Developer 6i - Forms and Reports Oracle 9iAS, Forms Server, Reports Server Designer 6i Windows NT 4

You’ve Got Mail 6 Mail Merge Capability Boilerplate text is defined Tokens are embedded Tokens represent data to be retrieved from the database – Columns – Functions applied to columns

You’ve Got Mail 7 Mail Merge Capability (2)

You’ve Got Mail 8 Multiple Letter Types Printed letter with single recipient/addressee – Example: Reminder letter to grantee stating that a progress report is overdue Personalized letter to multiple recipients – Example: Form letter to each state’s governor summarizing the grants awarded in the state Internal notification – Part of application – Simplified inbox

You’ve Got Mail 9 Setting up Letters

You’ve Got Mail 10 Distribution Multiple recipients/people and roles – Recipients are defined by their role in the organization - OR - – Their role for a grant Software determines the person based on the role – Example: “send a notification to the grants officer assigned to this grant”

You’ve Got Mail 11 Setting up Letter Recipients Each recipient has a default/preferred output format – or printed letter available to all – Notification available to internal agency only

You’ve Got Mail 12 Database Design – Letter Setup

You’ve Got Mail 13 Review/Change Output User may alter text, depending on privileges – Letter must be defined as “customizable” – User must be the signatory for the letter May also alter recipient list and destination type for each recipient Can hold letters for a period of time and send later

You’ve Got Mail 14 Review Output

You’ve Got Mail 15 Letters Generated by: Event – When a grant application is rejected (state transition engine) Schedule – Send reminder 30 days before progress report is due (DBMS_JOB) Manually – User presses “Create Follow-up Letter” button on the Site Visit Results form

You’ve Got Mail 16 Database Design - Output

You’ve Got Mail 17 Physical Database Design – Tables

You’ve Got Mail 18 Now what? Have to actually write code – Back-end code to generate letter and recipients – Front-end code to allow users to customize letter and recipient list, and send letters – Code to “print” the letters Report for printed output distribution Notifications for inbox distribution

You’ve Got Mail 19 Letter Generation Retrieve information on the current grant and grantee/applicant – Use a view to encapsulate information and include calculated columns Retrieve the letter text and standard recipients Parse the letter text and perform the mail merge

You’ve Got Mail 20 Database Views Source data – Views based on database tables

You’ve Got Mail 21 PL/SQL Package for Letter Generation For each view, a cursor and record are defined.

You’ve Got Mail 22 Package Body Components GEN_LTR – Driving Procedure – Create LETTERS record – Create LETTERS_RECIPIENTS records For each STD_RECIPIENT… Translate each role into a person Insert a LETTER_RECIPIENTS record Private procedures – GET_GRANT_DATA – Retrieve the grant data – GET_LTR_DATA - Retrieve the letter and recipient data – PARSE_TXT - Parse text – XLATE_TOKENS - Resolve tokens

You’ve Got Mail 23 Retrieve the Source Data

You’ve Got Mail 24 Retrieve the Letter Data

You’ve Got Mail 25 Retrieve the Letter Data (2)

You’ve Got Mail 26 Parse Text and Resolve Tokens Find tokens identified by > Resolve the token Build a single string that now includes boilerplate text and data

You’ve Got Mail 27 Resolve Tokens

You’ve Got Mail 28 Resolve Tokens (2)

You’ve Got Mail 29 Build Recipient List Remember… – Recipients are identified by their role – Each role has a corresponding token name associated with it So… – Use the same XLATE_TOKEN routine to translate a role into a person (PER_ID) – Insert a row into LETTER_RECIPIENTS for each one

You’ve Got Mail 30 Sending the Mail User reviews “outbox”

You’ve Got Mail 31 Sending the Mail (2) Oracle Reports to produce printed letters – LETTERS.LETTER_TXT is the entire letter body – Easy! – Build the signature block by getting the sender's signature image, name, title – Build the cc: list based on the LETTER_RECIPIENTS and translate the PER_ID into a real name UTIL_SMTP to send Internal table for notifications

You’ve Got Mail 32 Notifications

You’ve Got Mail 33 Limitations/Issues Limited to 32k letter text – PL/SQL VARCHAR2 limitation Text only – no pretty formatting Each view must be defined in the package. Therefore, developer action is required if new views are required.

You’ve Got Mail 34 Conclusion Mail generation can be built using custom- written PL/SQL and standard Oracle built-in packages. 100% user-maintainability can be achieved - almost Native Dynamic SQL is the key

You’ve Got Mail 35 About the Authors Leslie Tierstein is a Technical Project Manager at STR LLC in Fairfax VA. She can be reached at Mark Castaldo is a Senior Developer at STR LLC in Fairfax VA. He can be reached at This presentation is available on line at: