17
Welcome!

Welcome! Welcome! Agenda – Thursday AM Using Table Widgets Drag & Drop HTML Editor/Viewer Web Services New GUI Events Other useful API’s

Embed Size (px)

Citation preview

Page 1: Welcome! Welcome! Agenda – Thursday AM  Using Table Widgets  Drag & Drop  HTML Editor/Viewer  Web Services  New GUI Events  Other useful API’s

Welcome!

Page 2: Welcome! Welcome! Agenda – Thursday AM  Using Table Widgets  Drag & Drop  HTML Editor/Viewer  Web Services  New GUI Events  Other useful API’s

Welcome!

Agenda – Thursday AMUsing Table WidgetsDrag & DropHTML Editor/ViewerWeb ServicesNew GUI EventsOther useful API’s

Page 3: Welcome! 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 tableUser can sort/rearrange/resize (process)Based on new process type “Table Resource”

Has a PCFHas SOP, EOP, Post PCF Read EPSeq No controls initial order of columnsWidth controls initial width, can also mask data

Page 4: Welcome! Welcome! Agenda – Thursday AM  Using Table Widgets  Drag & Drop  HTML Editor/Viewer  Web Services  New GUI Events  Other useful API’s

Using Table WidgetsUses Col Headings in DD for table headings

Paint on image using new tool.Displays pseudo textCan set font size, type, colour, background colourWidget scrolls horizontally/vertically

Page 5: Welcome! Welcome! Agenda – Thursday AM  Using Table Widgets  Drag & Drop  HTML Editor/Viewer  Web Services  New GUI Events  Other useful API’s

Using Table WidgetsAt Runtime:

Can have multiple table widgets at onceCan set options for single click/double clickCan determine which row(s) the user selectedCan retrieve the PCF key of the selected row(s)Use --- INCLUDE/SELECT RECORD to include or pre-select a record/row.

Page 6: Welcome! Welcome! Agenda – Thursday AM  Using Table Widgets  Drag & Drop  HTML Editor/Viewer  Web Services  New GUI Events  Other useful API’s

Using Table WidgetsAt Runtime:

Tables are reloaded after Pre-Display Event Point executes.Can control via --- WIDGET RELOAD DATASRC field and --- .WIDGET RELOAD DATASRC API.

Page 7: Welcome! Welcome! Agenda – Thursday AM  Using Table Widgets  Drag & Drop  HTML Editor/Viewer  Web Services  New GUI Events  Other useful API’s

Using Table WidgetsLimitations:

Read only, change/add/delete not allowedPerformance, 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

Page 8: Welcome! Welcome! Agenda – Thursday AM  Using Table Widgets  Drag & Drop  HTML Editor/Viewer  Web Services  New GUI Events  Other useful API’s

Drag & DropWe 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

Page 9: Welcome! Welcome! Agenda – Thursday AM  Using Table Widgets  Drag & Drop  HTML Editor/Viewer  Web Services  New GUI Events  Other useful API’s

Drag & DropAt 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.

Page 10: Welcome! Welcome! Agenda – Thursday AM  Using Table Widgets  Drag & Drop  HTML Editor/Viewer  Web Services  New GUI Events  Other useful API’s

New Widget TypesThere are 5 new widget types for TEXT fields:

WEB BROWSER – full featured web browserCODE VIEWER – display code with highlightsHTML EDITOR – display/edit HTMLFLASH PLAYER – play Flash FilesMEDIA PLAYER – play supported media files

Page 11: Welcome! Welcome! Agenda – Thursday AM  Using Table Widgets  Drag & Drop  HTML Editor/Viewer  Web Services  New GUI Events  Other useful API’s

New Widget TypesWeb 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 customizedTo play Flash files, Flash must be installed on desktop

Page 12: Welcome! Welcome! Agenda – Thursday AM  Using Table Widgets  Drag & Drop  HTML Editor/Viewer  Web Services  New GUI Events  Other useful API’s

New Widget TypesTo play media files on non Windows desktops requires VLC from http://www.videolan.org/vlc

Page 13: Welcome! Welcome! Agenda – Thursday AM  Using Table Widgets  Drag & Drop  HTML Editor/Viewer  Web Services  New GUI Events  Other useful API’s

Using Web ServicesA 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 READThere are free web services at http://www.webservicex.net/ws/wscatlist.aspx

Page 14: Welcome! Welcome! Agenda – Thursday AM  Using Table Widgets  Drag & Drop  HTML Editor/Viewer  Web Services  New GUI Events  Other useful API’s

New GUI EventsYour 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

Page 15: Welcome! Welcome! Agenda – Thursday AM  Using Table Widgets  Drag & Drop  HTML Editor/Viewer  Web Services  New GUI Events  Other useful API’s

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.

Page 16: Welcome! Welcome! Agenda – Thursday AM  Using Table Widgets  Drag & Drop  HTML Editor/Viewer  Web Services  New GUI Events  Other useful API’s

Mystery/Bonus TopicsUsing Table Widgets and API to generate code, we can finally write a good general purpose import!New values for --- OPTION

RESCROLLKEY ENTRYLOGOUT

Page 17: Welcome! Welcome! Agenda – Thursday AM  Using Table Widgets  Drag & Drop  HTML Editor/Viewer  Web Services  New GUI Events  Other useful API’s

Mystery/Bonus TopicsNew Appx Environment Variables.

APPX_SMART_ILFAPPX_WARN_REG_DAYS

New Resource Type ‘FONT’Replaces ‘ROLLOVER SELECTED’ for custom fonts.