get active library using proxy instance

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
DavidBal
Profound User
Posts: 24
Joined: Fri Apr 13, 2018 4:06 am
First Name: David
Last Name: Baltromei
Company Name: H. Gautzsch Firmengruppe
Country: Germany
Contact:

get active library using proxy instance

Post by DavidBal »

Hi,

we installed three different instances on our ibm i.
- Port 80, Port 81 and Port 90 as a Proxy
- Port90 switches the user to 80 or 81

In Genie we can detect the active instance with a call:
CALL PGM(PROFOUNDUI/PUI0002300) PARM(&GENIE &GENIELIB +
&GENIESKIN &DOCROOT &USERAGENT)

In the variable &genielib we get the correct library of the active instance.

We created an environment where we only use Rich DSPF's. So we decided to use sessions.
Also in sessions we want to use the proxy instance.
Is there a way to detect the correct library?

Many thanks,

David
Scott Klement
Experienced User
Posts: 2711
Joined: Wed Aug 01, 2012 8:58 am
First Name: Scott
Last Name: Klement
Company Name: Profound Logic
City: Milwaukee
State / Province: Wisconsin

Re: get active library using proxy instance

Post by Scott Klement »

What do you mean by "sessions"? Do you mean you're starting a Rich Display session rather than a Genie/5250 session?

In a Rich Display session, the product library is automatically added to your library list. So, if your need is to get it in order to add it to the library list, it is not necessary, since it's already there.

If you have a different need, please explain.
DavidBal
Profound User
Posts: 24
Joined: Fri Apr 13, 2018 4:06 am
First Name: David
Last Name: Baltromei
Company Name: H. Gautzsch Firmengruppe
Country: Germany
Contact:

Re: get active library using proxy instance

Post by DavidBal »

We did not test it without adding a library in our start clle.
The proxy work fine and adds the correct librabry automatically in a authenticated session.

Have many thanks for your fast reply.
Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests