CHT (Clarion Handy Tools)
Templates, Classes, Utilities, Apps, Projects

MARCH 2020

CHT 2020 1st QUARTER BUILD
UPDATE 24A.02.00

TEMPLATE DOCUMENTS

VIA WEB:

** CHTTEMPLATES.PDF **
** CHTTEMPLATES.HTML **

ON YOUR DEV COMPUTER:

** /accessory/hnd/pdf/chttemplates.pdf

CLASSES DOCUMENTS

VIA WEB:

** CHTCLASSES.PDF **
** CHTCLASSES.HTML **

ON YOUR DEV COMPUTER:

** /accessory/hnd/pdf/chtclassses.pdf

APPLICATIONS DOCUMENTS

VIA WEB:

** CHTAPPLICATIONS.PDF **
** CHTAPPLICATIONS.HTML **

ON YOUR DEV COMPUTER:

** /accessory/hnd/pdf/chtapplications.pdf

REVISIONS
AND IMPROVEMENTS

CHT CLASS DIALOGS
"ICONS - COLOR"

CHT template ApplicationImagesEx now includes a dialog with which to globally set the FONT COLOR used in all CHT CLASS DIALOGS such as CHT QUERY BUILDER, CHT CONFIG DIALOGS, CALENDARS and CHT FILE SELECTION DIALOGS.

To reach this dialog click as follows, starting from CHT ApplicationImagesEx: -->DISPLAY SETTINGS Dialog --> CLASS DIALOGS Tab --> CLASS FONT COLOR Dropdown.

This affects your app globally and is the only place requiring your input in order to change the font color in all CHT popup dialog windows such as CHT Query Builder, File Selection Dialogs in HNDDISK and HNDDISKEX, and so on.

Previous dialogs which offered dialog font color selections on a procedure level basis now explain briefly the steps required for having font color and icons in CHT dialogs set globally on template, ApplicationImagesEx.

All CHT dialog icon configurations are also now performed exclusively on a once-per-app basis at the global level using ApplicationImagesEx. Previous dialogs which offered dialog icon selections on a procedure level basis now explain briefly the steps for having icon selections set globally on ApplicationImagesEx.

THINGS TO TRY

Experiment or simply observe the effects of these changes in HMB and EXPB browses with CHT Query Builder, using HNDACCESS.APP or HND3.APP (HMB) or HND2.APP (EXPB).

Experiment or simply observe the effects of these changes in LBX browses with CHT Query Builder using HNDLBXDM.APP or HNDLBXSQL.APP or HNDLBXSQLEX.APP.

Experiment or simply observe the effects of these changes in CHT File Selection dialogs using HNDBACKUPCONFIG.APP or HNDBACKUPCONFIGSNAP.APP.

See the fourth PROPS tab on CHT template HandyFileSelectorControl and check out the global settings on ApplicationImagesEx at -->DISPLAY SETTINGS Dialog --> CLASS DIALOGS Tab --> CLASS FONT COLOR Dropdown.

Experiment or simply observe the effects of these changes in CHT Calendars using HNDCAL.APP. Be aware that CHT calendars are individually color-configurable as always, since there is a requirement to control more than one font color. However, as described above, CHT Calendar icons are globally configurable on ApplicationImagesEx.

Experiment or simply observe the effects of these changes in CHT Configuration dialogs using HNDSLFCL.APP, HNDSLFSV.APP, HNDSLFSVFX.APP.

See the tab entitled "ICONS - COLOR" on templates EmbedHTTPClientFunctions, EmbedBrowserServer, GlobalIncludeHNDClientFunctions, and EmbedHTTPFunctions and others.

SERVER SAFETY
IMPROVEMENTS

In the previous build we told you about adding a server "Safety" switch and a "Log" switch to your server applications.

This build update we've further enhanced that feature by providing a configuration on the template to "ignore" and "close" sockets when illegal requests, that is, requests which the server does not condone via the "Safety" switch request filtering mechanism, or to return a 404 page which sends back to the requesting socket connection a 404 error and a file called 404page.html (name defined by HPROP:404Page, in HNDEQUSK.CLW).

If your server is a Page Server serving up HTML, generally, a 404Page is expected when a requested page is not found. However, we've found plenty of requests of an exploitative nature appearing in our server logs, and we've found that often just ignoring filtered-out, unwanted and intrusive requests is a better strategy.

The server simply closes the socket connection to the requester, as if the server wasn't really there, instead of sending back a 404 error and a 404 page. If someone is posting .PHP, .CGI, or .JSON requests trying to uncover data secrets from your server, they may as well be shunned rather than encouraged by 404 errors which often just spawn further, useless exploitation attempts that occupy server bandwidth.

If your server is a CHT Client Server (Servicing a CHT data client (Type 2, Type 3) a 404Page is not required. If your CHT Client posts an invalid request such as an invalid query or view name resulting in no data, the server returns an appropriate error, which the client understands. See HNDEQUSK.CLW for the ERROR: and ERRORCODE: section of equate definitions.

Watching your server log will help you decide if a 404 page is the right strategy for your situation. With the "Safety Switch" set, your log may quickly begin to fill with nonsense requests and honouring them with a 404Page (the equivalent of saying "Huh?") is probably showing better manners than the requester deserves. Better to ignore and shun.

See "Server Log Switch" on CHT Server template BrowserServerInitializationControls. Click, on the "CTL" tab, then, the "User Installed Server Controls" button.

On the "Set Three" tab, you can find the "Server Saftey Switch" and below that the "Return 404 Page" switch which by default is off.

PRECOMPILED UTILITY APPS
READY TO USE

The following set of CHT Clarion applications consists of more than demonstration applications which may be studied in source .APP format. While the source .APP is provided for you to use, learn from, and modify, many of these applications are incorporated into our template system, or employed by other applications in the form of "Batch-Bots" or "Snap-Ins".

Below is the latest list of 35 pre-compiled and code-signed CHT Applications, in your \accessory\bin\ directory. To read about any application, click the web link to the right of it.

Most of these apps are also self-documenting if you simply run them from the DOS prompt in the \accessory\bin\ directory.

• hndxml2htmlgen.exe •
   HNDXML2HTMLGEN.APP

• hndsearch.exe •
   HNSEARCH.APP

• hndmailmapi.exe •
   HNDMAILMAPI.APP

• hndbase64cvt.exe •
   HNDBASE64CVT.APP

• hndmakehzo.exe •
   HNDMAKEHZO.APP

• hndslfcmd.exe •
   HNDSLFCMD.APP

• hndmailnet.exe •
   HNDMAILNET.APP

• hndmailsmtp.exe •
   HNDMAILSMTP.APP

• hndftpnet.exe •
   HNDFTPNET.APP

• hndencrypt.exe •
   HNDENCRYPT.APP

• hndmailcdo.exe •
   HNDMAILCDO.APP

• hndzipnet.exe •
   HNDZIPNET.APP

• hndbackupconfig.exe •
   HNDBACKUPCONFIG.APP

• hndbrwcl.exe •
   HNDBRWCL.APP

• hndbulksigner.exe •
   HNDBULKSIGNER.APP

• hndcmp.exe •
   HNDCMP.APP

• hndfbackbuilder.exe •
   HNDFBACKBUILDER.APP

• hndpreviewer.exe •
   HNDPREVIEWER.APP

• hndsetup.exe •
   HNDSETUP.APP

• hndsqltrace.exe •
   HNDSQLTRACE.APP

• hndvideoeducation.exe •
   HNDVIDEOEDUCATION.APP

• hndzipnposttochtserver.exe •
   HNDZIPNPOSTOCHTSERVER.APP

• hndprinthtml.exe •
   HNDPRINTHTML.APP

• hndslfsvfx.exe  •
   HNDSLFSVFX.APP

• hndtileapplauncher.exe •
   HNDTILEAPPLAUNCHER.APP

• hndzipnemailsmtp.exe •
   HNDZIPNEMAILSMTP.APP

• hndteamdocserver.exe •
   HNDTEAMDOCSERVER.APP

• hndbatchrunner.exe •
   HNDBATCHRUNNER.APP

• hndzipnemailnet.exe •
   HNDZIPNEMAILNET.APP

• hndzipnemailmapi.exe •
   HNDZIPNEMAILMAPI.APP

• hndzipnemailcdo.exe •
   HNDZIPNEMAILCDO.APP

• hnddocumentbuilder.exe •
   HNDDOCUMENTBUILDER.APP

• hndbulknetmailpromo.exe •
   HNDBULKNETMAILPROMO.APP

• hndbulkmailbatcher.exe •
   HNDBULKMAILBATCHER.APP

• hndbackupconfigsnap.exe •
   HNDBACKUPCONFIGSNAP.APP

Contact Us

Click the link below to contact us by email.
It will start your email client with our email address inserted:

Click To Contact Us