Reducing Application Coding with SQL-Based Components · Reducing Application Coding with SQL-Based...

Post on 17-Jun-2020

5 views 0 download

transcript

Reducing Application Coding with SQL-Based ComponentsFrank Valcarcel – Cove Systems

SQL Pieces Submitter

o Pre-processes the SQL statemento Example: MS SQL Server Managero Builds connection, sends pieceso Tells optimizer to execute

Optimizero Builds Execution Plano Executes the statement

Resultset Handlero Pulls down resultseto Displays as required

Submitter and Resultset Object

SQL Statement

Returns Resultset

Sortable

Add totals

Right click to Export

Export Options Cheesy print from CodeJock Grid Output to HTML, print from Browser Copy to Clipboard

o Current or Selected Rowso All Rows

Exporto All or Selected to CSVo Direct to Excel (slow but prettier)o All to XML

Html Output to print

Export to CSV/Excel

File Export Options

Total Columns

History

Historical Statement Loaded

Stored Statements

Stored Statement to prep for a test

Store a statement (global or by user)

Token Replacement

Manifest Constants

Stored SQL Statements Lookups replace Reports Faster Customer Service Allow site specific customization Exit Routines

o Audit/Validationo Custom Calculations

Lookups

Select Query

Selection Selections

Stored SQL Text

Execution

Result

Drilldown

Detail Panel

Submitter Functions Parse out SQL Statement Insert Row Limit (TOP x) Test for blocked commands (DROP…) Prompt for embedded selections Call Token Replacement Make connection to SQL server Submit statement

Resultset Object Functions Select correct resultset Read data into cjGrid Object Convert SQL data types to DataFlex Format Data using codes embedded in “AS”

o Decimalso Column width

Total columns Support Export

Non-visual use of submitter Processing

Resultset Return in String [][] gsaResultSet

Context Queries User can execute queries which use current

buffers data to replace tokens in Query.

Scopes Query to current data

Generic Popup Query

Generic Popup Query

Jobber – Execute SQL

SQL Stored in Data

SQL Store in Job Record

Thank You!

Are there any questions?