× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Larry wrote:
> 
> You may recall from some questions last week about calling Java from RPG 
> through prototyped calls.  The JAR I am using produces PDF output, it is 
> called iText and I got it working with RPG.
> 
> It does have some featured that require you to register an event handler and 
> then create the code that will fire off when the events are triggered.
> 
> Is there anyway to duplicate this when creating your classes through RPG?
> 

If you want to write the event handler in RPG, you can write it as
native methods.  You will also have to write a bit of Java, to create a
class for the native method(s) to belong to.  The ILE RPG Programmer's
Guide has the instructions for writing a native method.  (The actual
native method code is no different from an ordinary RPG subprocedure -
the only difference is that you prototype it as a Java method.)

But since you have to write a bit of Java anyway, it might be just as
easy to write the event handler entirely in Java.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.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 on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.