Passing Atrium username to RPG program

Use this board to ask questions or have discussions with other Atrium users.
Post Reply
LoriAustin
New User
Posts: 13
Joined: Thu May 25, 2017 1:19 pm
First Name: Lori
Last Name: Austin
Company Name: NALC
Phone: 202-662-2853
Country: United States
Contact:

Passing Atrium username to RPG program

Post by LoriAustin »

I am new to RPG and Profound UI. We need to limit the data we show in a program based on a username - they should only see data they have entered. Is there a way I can get the username when the program is run from Atrium and pass it to my RPG program?
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: Passing Atrium username to RPG program

Post by Scott Klement »

There are examples of retrieving the current user in the following docs pages
http://www.profoundlogic.com/docs/displ ... e+from+Job
LoriAustin
New User
Posts: 13
Joined: Thu May 25, 2017 1:19 pm
First Name: Lori
Last Name: Austin
Company Name: NALC
Phone: 202-662-2853
Country: United States
Contact:

Re: Passing Atrium username to RPG program

Post by LoriAustin »

Thanks, Scott.
We tried this and it works when I run the program by using Launch Session from the Profound UI development screen. But when I run the same program from Atrium I get a user QTMHHTP1. Is this because of something we have not set up correctly in Atrium?
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: Passing Atrium username to RPG program

Post by Scott Klement »

Have you made sure you're using the proper positions of the PSDS shown in the link? Using the wrong positions can result in the wrong userid.

The other possibility is that you're launching the program as an anonymous program. Check the URL you've configured in the menu item that launches your program.
LoriAustin
New User
Posts: 13
Joined: Thu May 25, 2017 1:19 pm
First Name: Lori
Last Name: Austin
Company Name: NALC
Phone: 202-662-2853
Country: United States
Contact:

Re: Passing Atrium username to RPG program

Post by LoriAustin »

Yes, it is being launched as an anonymous program.
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: Passing Atrium username to RPG program

Post by Scott Klement »

Ah, okay. QTMHHTP1 is the correct userid for an anonymous program, so all is working properly.

If you want the program to run as the user who signed into Atrium, simply launch it as a non-anonymous program.
LoriAustin
New User
Posts: 13
Joined: Thu May 25, 2017 1:19 pm
First Name: Lori
Last Name: Austin
Company Name: NALC
Phone: 202-662-2853
Country: United States
Contact:

Re: Passing Atrium username to RPG program

Post by LoriAustin »

Thank you.
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests