Page 1 of 1

Call a rpg program from genie subfile grid on a click event

Posted: Thu Feb 09, 2012 11:36 am
by tcj2001
Is it possible to call a rpg program from genie subfile grid on a click event

Re: Call a rpg program from genie subfile grid on a click event

Posted: Thu Feb 09, 2012 12:16 pm
by David
Can you explain what you are looking to accomplish?

Re: Call a rpg program from genie subfile grid on a click event

Posted: Thu Feb 09, 2012 12:23 pm
by tcj2001
When i click on a subfile grid i want to call a external RPG program and pass a parameter value that is scraped from the existing screen. The reason I am doing this is dont want to modify the original program, but add this new functionality at GENIE level.

Re: Call a rpg program from genie subfile grid on a click event

Posted: Thu Feb 09, 2012 12:24 pm
by David
What would this new program do?

Re: Call a rpg program from genie subfile grid on a click event

Posted: Thu Feb 09, 2012 12:28 pm
by tcj2001
The program will display another subfile grid with some aditional data for the scraped data of the previous screen.

Re: Call a rpg program from genie subfile grid on a click event

Posted: Thu Feb 09, 2012 12:53 pm
by David
OK. There are a few ways of thinking about this:

1. You'd have to modify the underlying application to call the other subfile program based on the subfile row selection.

You did mention that this was not desirable, but I did want to point out that it's the only very seamless and easy way of doing it, assuming it's possible to change the program (i.e. you have the source code).

We would recommend doing this in most cases.

2. If your new application is a 5250 display file application that is to run in Genie, the only other way would be to use a Genie macro (document attached) to get the user to the application in a new Genie session which runs in a new browser window.

In order to get signed in again, you'd have to be running the session with HTTP server authentication (rather than 5250 sign on display). You can do that by launching Gene session with this URL:

Code: Select all


http://yourserver:8080/profoundui/auth/genie  (can be customized)

When launched that way, you get an HTTP sign on prompt and the 5250 sign on display is bypassed.