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

Use this board to ask questions or have discussions with other Genie users.
Post Reply
tcj2001
Profound User
Posts: 40
Joined: Tue Jun 28, 2011 4:55 pm
First Name: Thomson
Last Name: Mathews
Company Name: Chesapeake Energy
Contact:

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

Post by tcj2001 »

Is it possible to call a rpg program from genie subfile grid on a click event
User avatar
David
Profound Logic Staff Member
Posts: 690
Joined: Fri Jan 04, 2008 12:11 pm
First Name: David
Last Name: Russo
Company Name: Profound Logic Software
Contact:

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

Post by David »

Can you explain what you are looking to accomplish?
tcj2001
Profound User
Posts: 40
Joined: Tue Jun 28, 2011 4:55 pm
First Name: Thomson
Last Name: Mathews
Company Name: Chesapeake Energy
Contact:

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

Post 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.
User avatar
David
Profound Logic Staff Member
Posts: 690
Joined: Fri Jan 04, 2008 12:11 pm
First Name: David
Last Name: Russo
Company Name: Profound Logic Software
Contact:

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

Post by David »

What would this new program do?
tcj2001
Profound User
Posts: 40
Joined: Tue Jun 28, 2011 4:55 pm
First Name: Thomson
Last Name: Mathews
Company Name: Chesapeake Energy
Contact:

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

Post by tcj2001 »

The program will display another subfile grid with some aditional data for the scraped data of the previous screen.
User avatar
David
Profound Logic Staff Member
Posts: 690
Joined: Fri Jan 04, 2008 12:11 pm
First Name: David
Last Name: Russo
Company Name: Profound Logic Software
Contact:

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

Post 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.
Attachments
Genie Macros.pdf
(869.32 KiB) Downloaded 502 times
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests