Transcript Day 2

Welcome!
Agenda – Thursday AM
Using Table Widgets
Drag & Drop
HTML Editor/Viewer
Web Services
New GUI Events
Other useful API’s
Using Table Widgets
True
scrolling table
User can sort/rearrange/resize (process)
Based on new process type “Table
Resource”
Has a PCF
Has SOP, EOP, Post PCF Read EP
Seq No controls initial order of columns
Width controls initial width, can also mask
data

Using Table Widgets

Uses Col Headings in DD for table headings
Paint
on image using new tool.
Displays pseudo text
Can set font size, type, colour, background
colour
Widget scrolls horizontally/vertically

Using Table Widgets
At
Runtime:
Can have multiple table widgets at once
Can set options for single click/double click
Can determine which row(s) the user selected
Can retrieve the PCF key of the selected
row(s)
Use --- INCLUDE/SELECT RECORD to
include or pre-select a record/row.

Using Table Widgets
At
Runtime:
Tables are reloaded after Pre-Display Event
Point executes.
Can control via --- WIDGET RELOAD
DATASRC field and --- .WIDGET RELOAD
DATASRC API.

Using Table Widgets
Limitations:
Read only, change/add/delete not allowed
Performance, ie, may be too slow to load with
10,000 records. Use memory file instead.
Data sharing is one way (implied Separate
Task flag)
Currently can’t mask numeric fields

Drag & Drop
We
can designate certain widget types as
‘drop’ targets.
Allows user to drag and drop a file, folder
or Email (Outlook, Thunderbird supported)
Drop spec allows File, Folder, Tree, Any
Drag & Drop
At
Runtime:
User can drag object over drop area, target is
highlighted to indicate drop allowed.
If not valid, message ‘No Valid Items Dropped’
--- OPTION is set to DROP, and files
DROPINFO and DROPPROP populated.
If Email dropped, email is copied to
‘dropCachePath’ location. Designer
responsibility to manage them.

New Widget Types
There
are 5 new widget types for TEXT
fields:
WEB BROWSER – full featured web browser
CODE VIEWER – display code with highlights
HTML EDITOR – display/edit HTML
FLASH PLAYER – play Flash Files
MEDIA PLAYER – play supported media files

New Widget Types
Web
Browser has option to show
‘decorations’ or not.
HTML editor can enter/save text in HTML
format. Can be displayed via HTML Viewer
control.

Editor can be customized
To
play Flash files, Flash must be installed
on desktop
New Widget Types
To
play media files on non Windows
desktops requires VLC from
http://www.videolan.org/vlc
Using Web Services
A
new feature of the .STREAM routines is
the ability to open a URL as a file.
Pass the URL as file name, then you can
read the results using .STREAM READ
There are free web services at
http://www.webservicex.net/ws/wscatlist.as
px
New GUI Events
Your
process can be notified when the
user Tabs into, Tabs out of, or changes a
value.
Allows screens to be much more
interactive.
Set on a field by field basis
--- OPTION is set to TAB IN, TAB OUT, or
VALUE CHANGED
New GUI Events
---
CURSOR AT FIELD contains the field
name.
Only Option Intercept is executed (unless
you change the value of --- OPTION).
VALUE CHANGED triggered when user
Tabs out or timer expires
(valueChangedTimer)
One keystroke could trigger all three
events.
Mystery/Bonus Topics
Using
Table Widgets and API to generate
code, we can finally write a good general
purpose import!
New values for --- OPTION
RESCROLL
KEY ENTRY
LOGOUT

Mystery/Bonus Topics
New
Appx Environment Variables.
APPX_SMART_ILF
APPX_WARN_REG_DAYS

New
Resource Type ‘FONT’
Replaces ‘ROLLOVER SELECTED’ for
custom fonts.
