Learn More
Search site for:
News »
Scroll Up for Recent News
ASI Launches new Beta Progam
Appx Software, Inc has launched a new beta program ...

[Read Full Article]


Appx 5.0 Released!
The long awaited Release 5 of Appx is available ...

[Read Full Article]


Appx 5.0 Beta for Windows is Ready!
The Windows version of Appx Release 5.0 Beta is ready...

[Read Full Article]


Appx 5.0 Linux Beta is Ready!
Appx Release 5.0 Beta is ready. This Release includes ...

[Read Full Article]


Caylx Retires from Distribution
Following 33 years of working with the SPEED I, SPEED II and APPX...

[Read Full Article]


Appx Blog
Appx Blog Online
ASI has started a blog! This is an excellent way...

[Read Full Article]


Appx Conference 2007
We're pleased to report that our first European APPX Conference proved to be...

[Read Full Article]


Appx Conference 2007
Still haven't decided if the Appx Conference is for you? First of all, it's a great way...

[Read Full Article]


CWI Hosts European Conference
For some years now, ASI has been hosting tremendously successful APPX conferences in the USA...

[Read Full Article]


4.2.a Patch
ASI announces the APPX 4.2.a Patch Release is now available for download ...

[Read Full Article]


New Registration Format
ASI provides a new format for emailed APPX registrations. Registrations are now being sent as text file attachments to...

[Read Full Article]


Conference Results
Another conference is over, and once again it provided an excellent opportunity to network, learn and socialize with VARs and customers from around the world...

[Read Full Article]


Appx Conference
You are cordially invited to join your APPX colleagues and friends at the newest "episode" of the bi-annual conference, called "APPX EX-ZOO-BERATION 2006"!...

[Read Full Article]


Minicom Joins CWI
CWI is delighted to welcome Minicom Software House Ltda, located in Brazil, to its reseller network!

For over 25 years, Minicom's team of consultants has been involved in the development and...

[Read Full Article]


Sadden Joins CWI
Sadeen Computerized Systems is an integrated solutions provider which has been offering management control software, security systems and access control software to SMEs for a number of years. Now, however...

[Read Full Article]


SWS Joins CWI
CWI is pleased to welcome SWS Software Service in Austria to its reseller network! SWS has been a very successful SPEED II reseller since 1983 and has been working with APPX since...

[Read Full Article]


Sintec Joins CWI
CWI is pleased to welcome Sintec, S.A. de C.V. from Mexico to its reseller network!

[Read Full Article]


Scroll Down for Archived News


A | B | C | D | E |F | G | H | I | J | K | L | M | N | O | P
Q | R | S | T | U | V | W | X | Y | Z


Non Interactive 'In Progress' Displays

We have discovered a technique where you can have APPX display each record in a file, and for each record indicate the status of that record as the status changes, and then move on to the next record in the file. This is the same kind of display you get when you restructure files, or process the Data Dictionary to name just a few places in the runtime application. For example, when you restructure files in a database, APPX displays the file name, then various messages that describe the progress (Restructuring, Restructured, Structure File Rebuilt, etc.), and then moves on to the next file.

There is an example of how to do this in the '1EX' application that ships with APPX, however, it is quite complex, has several memory files, and probably as much code as the INVOICES POST routine in Accounts Payable.

This is a much simpler technique. First, define an INPUT process with a scrolling frame. You can use whatever sizes and positions are appropriate, and populate it with whatever fields you want. In the start of process, set SCROLL TO END equal to "Y". This causes APPX to read and display every record in the file instead of just reading enough to fill the scrolling display. The second part (and this is the secret) is in Option Intercept, you can do whatever processing you want (i.e., invoke a subroutine, etc) and then set OPTION = REDISPLAY. You should only do this if INTERACTIVE PHASE = DATA SCROLL, which tells you that APPX is still reading records to fill the display. When you set the OPTION = REDISPLAY, this will cause APPX to go back to the image, redisplay all the fields for the same record, and then return to Option Intercept event point.

Consider the following OPTION INTERCEPT code:

  	IF      --- INTERACTIVE PHASE NE DATA SCROLL
T       END
	IF      --- TEMP 80 EQ STATE 1
C**     GOSUB :PERFORM SOME PROCESSING
T       SET     --- TEMP 80 = STATE 2
T       SET     --- OPTION = REDISPLAY
T       DISPLAY --- TEMP 80 (AT APPEARANCE # )
T       END
	IF      --- TEMP 80 EQ STATE 2
C**     GOSUB :PERFORM SOME DIFFERENT STUFF
T       SET     --- TEMP 80 = DONE
T       SET     --- OPTION = REDISPLAY
T       DISPLAY --- TEMP 80 (AT APPEARANCE # )
T       END
TEMP 80 is set to 'STATE 1' in the POST PCF READ event point, so the first time APPX comes into this Event Point, the first test on TEMP 80 will be true. On our image, we have painted some fields from the PCF file, and the TEMP 80 field. While APPX is performing the 'PERFORM SOME PROCESSING' subroutine, the PCF file images and 'STATE 1' will be displayed on the screen. When the subroutine is complete, TEMP 80 is changed, and OPTION is set to REDISPLAY, which causes APPX to redisplay the PCF fields and TEMP 80 ('STATE 2') for the same record. When APPX comes back into this Event Point, it will hit the second test on TEMP 80, and perform the 'PERFORM SOME DIFFERENT STUFF' routine. During this time, the PCF fields and TEMP 80 (which now contains 'STATE 2') will be displayed. When the subroutine is complete, TEMP 80 is changed and OPTION is again set to REDISPLAY. This will cause APPX to redisplay the same record and TEMP 80 (which now contains DONE). APPX will then come back into this Event Point, and since none of the IF's are true, it will just display the record, and read the next record in the PCF file. This will reset TEMP 80 to STATE 1 (via the code in the POST PCF READ), and the process will repeat for the next record.

Depending what you want to happen when everything is done, you can either code an END PROC when INTERACTIVE PHASE is no longer DATA SCROLL in the PREDISPLAY event point, or if you want APPX to redisplay the entire file so the operator can review it, you can code something like this (also in PREDISPLAY):

IF      --- INTERACTIVE PHASE NE DATA SCROLL
T       IF      --- QI EQ 0
TT      SET     --- OPTION = SCROLL FIRST
TT      SET     --- QI = 1
Setting OPTION to SCROLL FIRST will cause APPX to go back to the beginning of the PCF file and fill the display from there. For some reason, it is not necessary to reset SCROLL TO END to "N". It is necessary, however, to know whether we have set OPTION to SCROLL FIRST or not, which is why we use QI as a flag. If we don't do this, we will end up in an infinite loop.

The only disadvantage with this approach is that we cannot use the image manipulation commands (BRIGHT, DIM, INVERSE, BLINK). It would be nice if we could highlight the record in progress by making it brighter, but these commands don't seem to apply during DATA SCROLL mode.

« Return




For additional information, contact tips@cwi-appx.com

[back to top]