Page 1 of 1

Calling Genie program from Anonymous ProfoundUI program

Posted: Tue Sep 03, 2013 7:11 am
by rockman411
We are trying to call a RPGLE program from a third party Document and Imaging system called Onbase http://www.hyland.com/.

This product will launch one of our claim programs on the i-Series. We have developed a new Anonymous ProfoundUI program to call one of our 5250 programs, but the program displays an error messsage "CPF4103" when trying to open a 5250 display file.

CPF4103: Device *REQUESTER not found while opening file HUT2050D in library
GCPDN100.

We have defined a new Anonymous ProfoundUI program called HWF3100 as defined below. Two parameters are passed to this program from our document imaging workflow system as shown below:

Code: Select all

https://XXXXXXX.euro.intl.cigna.com:8081/profoundui/auth/start?pgm=HMORC/HWF3100&p1=123441111&l1=20&p2=RUS521512111.tiff&l2=24
Our start HTML page looks like this:

Code: Select all

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <meta http-equiv="X-UA-Compatible" content="IE=8" />
  <link href="/profoundui/proddata/css/profoundui.css" rel="stylesheet" type="text/css">
  <script type="text/javascript" src="/profoundui/proddata/js/runtime.js"></script>
  <title>Profound UI</title>
  <script type="text/javascript">
    window.onload = function() { pui.start() };
  </script>
</head>

<body>
  <div id="pui">
  </div>
</body>
     
</html>
How do we get the ProfoundUI program to call a Genie program?

If I include the genie.js

Code: Select all

<script type="text/javascript" src="/profoundui/proddata/js/genie.js"></script>
into the start HTML page we get another error everytime a button is pressed on the screen. (The session has timed out)

Any advice on how to get this work would be greatly appreciated

Re: Calling Genie program from Anonymous ProfoundUI program

Posted: Tue Sep 03, 2013 10:12 am
by Scott Klement
You can run a Rich Display (Profound UI screens) inside Genie, but you cannot run 5250 screens (Genie webfaced screens) inside a Profound UI session.

The reason is because Genie requires a 5250 virtual device in order to communicate (via the 5250 protocol) with the operating system. A Profound UI session does not allocate a 5250 device, it runs completely independent of 5250.

However, it's possible to do this the other way around: You can run a Rich Display File inside of Genie. What you'd want to do is create a Genie macro that logs the user into the session and runs the Rich Display. Then, if the Rich Display runs a 5250 program, Genie will take over and handle things appropriately, since you'll already be inside a Genie session.

More information on Genie macros here:
http://www.profoundlogic.com/docs/display/PUI/Macros

More info on running Rich Displays (Profound UI displays) inside of Genie, here:
http://www.profoundlogic.com/docs/displ ... thin+Genie

The alternative, of course, is to convert all of your screens to rich displays and eliminate 5250 altogether.

Let me know if this helps

Re: Calling Genie program from Anonymous ProfoundUI program

Posted: Fri Sep 06, 2013 9:54 am
by rockman411
I’ve just finished writing and testing this solution using a Genie Macro. I must admit that this is very cool. The macro is invisible to the user and the performance is excellent.
Thank you for guiding us in the right direction. Our solution can now call Genie and ProfoundUI programs seamlessly.

Re: Calling Genie program from Anonymous ProfoundUI program

Posted: Fri Sep 06, 2013 11:01 am
by Scott Klement
You're quite welcome -- so glad it worked well for you!