MIDRANGE dot COM Mailing List Archive



Home » MIDRANGE-L » September 2012

Re: Event-based actions



fixed

Seen a solution for a similar issue ( displaying current stock prices as
they change ). Display files can be configured to write entries to data
queues upon user action (press enter key or command key). Been available
since the System 38 (except for the database trigger).

So the display program is a loop waiting on arriving data queue entries,
whether from the database or user keyboard events.

To be notified of on-hand quantity changes, your display program would need
to register its interest in such events for items it is currently
displaying- a table with a row for each item, a data queue to notify, and
maybe a reference to the job and current level being displayed.

Then add an after trigger on your inventory table which will check the
current notification registry for entries for the item number just updated,
and generate a data queue entry for each registered listener for the
updated quantity.





.


.





Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2014 by MIDRANGE dot COM and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available here. If you have questions about this, please contact