Components & Managers

Code samples which are unifed components or managers ready to be incorporated in other code


Session Variable Manager

The variable manager is a super procedure which can replace the functionality usually provided by SHARED and GLOBAL-SHARED variables, as well as adding functionality such as access permissions.

See "SessionVariableManager" in Amduus code repository: http://www.oehive.org/amduus/

by Tim Keuhn


Zeno process-spawner

The Zeno processor is a framework of scripts and code that allows the user to spawn off on or more processes on one or more machines to handle requests.

Browse the code (and documentation): http://www.oehive.org/amduus/Zeno/


Cache manager

Often in web applications we will need to draw up a large set of result data stored in a table. This often takes a lot of time to pull out of the main tables, collate, and join together fields. This can become expensive on pages only meant to display a portion of the data at a time (the concept of “paging” the data so the web page is manageable to read.) By using a cache manager, it will be easier to store the result set to disk and use some procedures to pull back “pages” of data that we desire.
This manager can be used in Web 1.0 as well as in AJAX type web applications.


4GL Thrown Exceptions

Installation:

Unzip the files, make sure they're on the PROPATH and that's it.


Procedure Manager

The procedure manager provides a standardized way of managing when a persistent or super procedure is instantiated, which procedures parent it, how many procedure instances are created, and when they are deleted.

The primary application for this program is enabling writing new PP/SP code with OO style structures, which enables easier development of new code and upgrading existing legacy applications with minimal code impact.


Query Manager

The query manager abstracts commonly-performed life-cycle management of static and dynamic queries, and browses into a standard block of 4GL / ABL code.

This enables a developer to compose a query filter with an arbitrary number of AND conditions by performing a RUN to add each filter condition to a given buffer of the query.


Directory Tools

dir-tools.p can be used to work with files and directories and:

* obtain file information for a specified directory level or for an entire directory tree.
* compile programs and saving r-code to a target directory tree
* copying files and directories
* merge multiple directory trees to a target directory path
* delete files, directories, and directory trees
* show a status to the user as it works


Pure4GLTv a clone of the MS treeview in pure ABL

This object provides an alternate solution to using a treeview OCX, and demonstrate the power of ABL to achieve fast and sophisticated UI Objects. It supports all the basic treeview features, as well as drag and drop, node moves, popup menu's, plus it can load nodes in a very fast way (1000 nodes in 0.73 seconds on a 2GHz CPU, so faster than the MS OCX).

pure4glTv works fine on Linux with Wine (where a few OCXs can make problems) so it helps to open the door to this configuration. The package includes sample code and documentation. Last update in January 2007. On July 2006: Restructuration regarding support of mulitple skins (XP Luna, Royale and Classic included). A few new API's like getSelectedNodeKey(). New expandAll functionality on '*' key.


Syndicate content