Passing Atrium username to RPG program
-
- 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
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?
-
- 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
There are examples of retrieving the current user in the following docs pages
http://www.profoundlogic.com/docs/displ ... e+from+Job
http://www.profoundlogic.com/docs/displ ... e+from+Job
-
- 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
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?
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?
-
- 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
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.
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.
-
- 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
Yes, it is being launched as an anonymous program.
-
- 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
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.
If you want the program to run as the user who signed into Atrium, simply launch it as a non-anonymous program.
-
- 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
Thank you.
Who is online
Users browsing this forum: No registered users and 1 guest