Closing a Browser Tab and Execute Signoff
Posted: Tue Apr 01, 2014 12:04 pm
Hello,
we want to end a RPG program inclusive closing the browser tab. We don't want the user to click onto the close button of the tab. The user does something in our ProfoundUI application and then the program should end completely. We tried "pui.closeSession", but this method makes that the RPG program gets an failure because the device is closed. What we want is a proper signoff.
The background for this is the following:
Our Java developers want to call a special RPG program by starting a Genie session. (Because we use Kerberos is is no problem to open a session without typing in a password.) On the iSeries in the signon script we recogneize that a special program shall be called. Then we call the programm and the user e.g. can select a customer in a grid. When the user has done the selection the data is given to the java program (running on a PC) and the RPG program should be closed accurately.
The problem is if we do a signoff in the RPG program, the program ends an we can't close the window. If we close the window first the RPG program gets an device error an we can't do a signoff.
Dieter
we want to end a RPG program inclusive closing the browser tab. We don't want the user to click onto the close button of the tab. The user does something in our ProfoundUI application and then the program should end completely. We tried "pui.closeSession", but this method makes that the RPG program gets an failure because the device is closed. What we want is a proper signoff.
The background for this is the following:
Our Java developers want to call a special RPG program by starting a Genie session. (Because we use Kerberos is is no problem to open a session without typing in a password.) On the iSeries in the signon script we recogneize that a special program shall be called. Then we call the programm and the user e.g. can select a customer in a grid. When the user has done the selection the data is given to the java program (running on a PC) and the RPG program should be closed accurately.
The problem is if we do a signoff in the RPG program, the program ends an we can't close the window. If we close the window first the RPG program gets an device error an we can't do a signoff.
Dieter