63
Database Updates Made Easy In WebFocus Using SQL And HTML Painter Sept 2011 Lender Processing Services 1

Database Updates Made Easy In WebFocus Using SQL And HTML Painter

  • Upload
    paniz

  • View
    74

  • Download
    2

Embed Size (px)

DESCRIPTION

Database Updates Made Easy In WebFocus Using SQL And HTML Painter. Sept 2011. Lender Processing Services. 1. Overview. What should you learn from this!. How to Use a Combination of. SQL HTML Painter WebFocus Dev Studio. - PowerPoint PPT Presentation

Citation preview

Page 1: Database Updates  Made Easy In  WebFocus Using SQL And HTML Painter

Database Updates Made Easy In WebFocus Using SQL And HTML Painter

Sept 2011

Lender Processing Services 1

Page 2: Database Updates  Made Easy In  WebFocus Using SQL And HTML Painter

Overview

Lender Processing Services 2

What should you learn from this!

How to Use a Combination of

SQLHTML Painter

WebFocus Dev StudioTo make your reports interactive and allow real time database

updates

Page 3: Database Updates  Made Easy In  WebFocus Using SQL And HTML Painter

Required

Lender Processing Services 3

Things you must have to make this work

A database connection ID with update authority

Ability to write WebFocus code in text editor

Basic knowledge of SQL, HTML, Dev Studio

Page 4: Database Updates  Made Easy In  WebFocus Using SQL And HTML Painter

Recommended

Lender Processing Services 4

Things I recommend to make this example work best

Turn off page caching in WebFocus admin suite

Force page headings to display on empty report

Page 5: Database Updates  Made Easy In  WebFocus Using SQL And HTML Painter

Basic Dev Studio Report

Lender Processing Services 5

Page 6: Database Updates  Made Easy In  WebFocus Using SQL And HTML Painter

Basic Report Output

Lender Processing Services 6

Page 7: Database Updates  Made Easy In  WebFocus Using SQL And HTML Painter

Create Procedure for SQL Add

Lender Processing Services 7

Page 8: Database Updates  Made Easy In  WebFocus Using SQL And HTML Painter

Input SQL Code

Lender Processing Services 8

Page 9: Database Updates  Made Easy In  WebFocus Using SQL And HTML Painter

SQL - Edit Input

Lender Processing Services 9

Page 10: Database Updates  Made Easy In  WebFocus Using SQL And HTML Painter

SQL – Database Connect

Lender Processing Services 10

Page 11: Database Updates  Made Easy In  WebFocus Using SQL And HTML Painter

SQL – Insert Query

Lender Processing Services 11

Page 12: Database Updates  Made Easy In  WebFocus Using SQL And HTML Painter

SQL – Redirect

Lender Processing Services 12

Page 13: Database Updates  Made Easy In  WebFocus Using SQL And HTML Painter

Auto Prompt

Lender Processing Services 13

What you get if you run the SQL Procedure

Page 14: Database Updates  Made Easy In  WebFocus Using SQL And HTML Painter

Create Work HTML

Lender Processing Services 14

Name it and make sure it is set not to show

on users list

Page 15: Database Updates  Made Easy In  WebFocus Using SQL And HTML Painter

Create an Empty Form

Lender Processing Services 15

Page 16: Database Updates  Made Easy In  WebFocus Using SQL And HTML Painter

Add Hyperlink to Form Submit

Lender Processing Services 16

Page 17: Database Updates  Made Easy In  WebFocus Using SQL And HTML Painter

Add Hyperlink Action

Lender Processing Services 17

Page 18: Database Updates  Made Easy In  WebFocus Using SQL And HTML Painter

Set Hyperlink Action

Lender Processing Services 18

Page 19: Database Updates  Made Easy In  WebFocus Using SQL And HTML Painter

Set Hyperlink Source

Lender Processing Services 19

Page 20: Database Updates  Made Easy In  WebFocus Using SQL And HTML Painter

Save Hyperlink

Lender Processing Services 20

Page 21: Database Updates  Made Easy In  WebFocus Using SQL And HTML Painter

Hyperlink Parameters

Lender Processing Services 21

Page 22: Database Updates  Made Easy In  WebFocus Using SQL And HTML Painter

Parameters Control Options

Lender Processing Services 22

Page 23: Database Updates  Made Easy In  WebFocus Using SQL And HTML Painter

A Blob of Page Elements

Lender Processing Services 23

Page 24: Database Updates  Made Easy In  WebFocus Using SQL And HTML Painter

Design The Page – Simple And Clean

Lender Processing Services 24

Arrange FieldsModify Headings

Add Text to ButtonsOther Visual

Improvements

Page 25: Database Updates  Made Easy In  WebFocus Using SQL And HTML Painter

Preview the Page

Lender Processing Services 25

Page 26: Database Updates  Made Easy In  WebFocus Using SQL And HTML Painter

Set Field Properties

Lender Processing Services 26

Page 27: Database Updates  Made Easy In  WebFocus Using SQL And HTML Painter

Tab Index

Lender Processing Services 27

You will want to set the tab index on every element to control the flow

Page 28: Database Updates  Made Easy In  WebFocus Using SQL And HTML Painter

Remove Extra Tab Index from HTML

Lender Processing Services 28

Page 29: Database Updates  Made Easy In  WebFocus Using SQL And HTML Painter

Copy HTML To Clipboard

Lender Processing Services 29

Page 30: Database Updates  Made Easy In  WebFocus Using SQL And HTML Painter

Create Procedure to Hold HTML

Lender Processing Services 30

To be able to link to the html from the report we need to put the HTML in a

procedureHint: Make it easy to identify

Page 31: Database Updates  Made Easy In  WebFocus Using SQL And HTML Painter

Insert HTML into Procedure

Lender Processing Services 31

Page 32: Database Updates  Made Easy In  WebFocus Using SQL And HTML Painter

Ready to Link To

Lender Processing Services 32

Your SQL and HTML are now ready to be linked to!

Lets recap what you have done so far

SQL code to add a record by receiving edited fields

HTML form to allow user entry of fields

Manual editing of HTML to adjust tab order

Procedure to hold HTML that is linkable from a report

Page 33: Database Updates  Made Easy In  WebFocus Using SQL And HTML Painter

Add Menu Link to Report

Lender Processing Services 33

Page 34: Database Updates  Made Easy In  WebFocus Using SQL And HTML Painter

Menu Link – Drill Down on Column Title

Lender Processing Services 34

Page 35: Database Updates  Made Easy In  WebFocus Using SQL And HTML Painter

Menu Link – Define Drill Down

Lender Processing Services 35

Page 36: Database Updates  Made Easy In  WebFocus Using SQL And HTML Painter

Menu Link – Set Drill Down Type

Lender Processing Services 36

Page 37: Database Updates  Made Easy In  WebFocus Using SQL And HTML Painter

Menu Link – Select HTML Procedure

Lender Processing Services 37

Page 38: Database Updates  Made Easy In  WebFocus Using SQL And HTML Painter

Menu Link – Set Target Frame

Lender Processing Services 38

Page 39: Database Updates  Made Easy In  WebFocus Using SQL And HTML Painter

Menu Link – Apply and Save

Lender Processing Services 39

Page 40: Database Updates  Made Easy In  WebFocus Using SQL And HTML Painter

Report Before and After

Lender Processing Services 40

Page 41: Database Updates  Made Easy In  WebFocus Using SQL And HTML Painter

Click Heading for Menu

Lender Processing Services 41

Page 42: Database Updates  Made Easy In  WebFocus Using SQL And HTML Painter

Add a Record

Lender Processing Services 42

Page 43: Database Updates  Made Easy In  WebFocus Using SQL And HTML Painter

Delete Example

Lender Processing Services 43

How does a delete differ from the Add

No HTML Form

No Editing User Fields

Must Pass Record Key to SQL

Page 44: Database Updates  Made Easy In  WebFocus Using SQL And HTML Painter

SQL – Delete Query

Lender Processing Services 44

Page 45: Database Updates  Made Easy In  WebFocus Using SQL And HTML Painter

Field Must Be In Report To Pass

Lender Processing Services 45

Page 46: Database Updates  Made Easy In  WebFocus Using SQL And HTML Painter

Does Not Have to Be Visible

Lender Processing Services 46

Page 47: Database Updates  Made Easy In  WebFocus Using SQL And HTML Painter

Order is Important

Lender Processing Services 47

Page 48: Database Updates  Made Easy In  WebFocus Using SQL And HTML Painter

Add Delete Option To Column Data

Lender Processing Services 48

Page 49: Database Updates  Made Easy In  WebFocus Using SQL And HTML Painter

Set Delete Parameters

Lender Processing Services 49

Page 50: Database Updates  Made Easy In  WebFocus Using SQL And HTML Painter

Pass the Hidden Field

Lender Processing Services 50

Page 51: Database Updates  Made Easy In  WebFocus Using SQL And HTML Painter

Delete In Action

Lender Processing Services 51

Page 52: Database Updates  Made Easy In  WebFocus Using SQL And HTML Painter

Change a Record

Lender Processing Services 52

How does a change differ from the Add or Delete

Pre Populate HTML Form

Store Record Key in Hidden Field

Page 53: Database Updates  Made Easy In  WebFocus Using SQL And HTML Painter

SQL – Change Query

Lender Processing Services 53

Page 54: Database Updates  Made Easy In  WebFocus Using SQL And HTML Painter

Hide The Key Field

Lender Processing Services 54

Page 55: Database Updates  Made Easy In  WebFocus Using SQL And HTML Painter

Blank Out Hidden Field Heading

Lender Processing Services 55

Page 56: Database Updates  Made Easy In  WebFocus Using SQL And HTML Painter

Set Initial Values

Lender Processing Services 56

Page 57: Database Updates  Made Easy In  WebFocus Using SQL And HTML Painter

Set Initial Values

Lender Processing Services 57

Page 58: Database Updates  Made Easy In  WebFocus Using SQL And HTML Painter

Add Change Menu Link to Report

Lender Processing Services 58

Page 59: Database Updates  Made Easy In  WebFocus Using SQL And HTML Painter

Set Target and Parameters

Lender Processing Services 59

Page 60: Database Updates  Made Easy In  WebFocus Using SQL And HTML Painter

Change Menu and Form

Lender Processing Services 60

Page 61: Database Updates  Made Easy In  WebFocus Using SQL And HTML Painter

Change Record with Results

Lender Processing Services 61

Page 62: Database Updates  Made Easy In  WebFocus Using SQL And HTML Painter

Recap

Lender Processing Services 62

A summary of what we have learned

SQL code to Add/Delete/Change a record

HTML forms to allow user entry of fields

Manual editing of HTML to adjust tab order

Procedure to hold HTML that is linkable from a report

How to pass parameters to pre-populate forms

How to turn a report into an interactive system!

Page 63: Database Updates  Made Easy In  WebFocus Using SQL And HTML Painter

Thank You For Attending

Lender Processing Services 63

If you have questions please contact me at

John Johnson(904) 854-5459

[email protected]