Passing parameter in ATRIUM to rich display app
-
- Profound User
- Posts: 40
- Joined: Tue Jun 28, 2011 4:55 pm
- First Name: Thomson
- Last Name: Mathews
- Company Name: Chesapeake Energy
- Contact:
Passing parameter in ATRIUM to rich display app
How do you pass parameter to a rich display file app created in profoundui, my starting cl of the app takes parameter, if i am using url to activate the app, i can pass the parameter in the query string. I want this app to be activated using a toolbar or navigation panel in ATRIUM.
-
- Profound User
- Posts: 40
- Joined: Tue Jun 28, 2011 4:55 pm
- First Name: Thomson
- Last Name: Mathews
- Company Name: Chesapeake Energy
- Contact:
Re: Passing parameter in ATRIUM to rich display app
I dont want to call this is as a web page in ATRUIM, but as Rich Display app, so that it can a get the correct user id of logged in user of ATRIUM.
- 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: Passing parameter in ATRIUM to rich display app
There's not currently a way to pass a parameter to a rich display file program from Atrium. You can specify another program, though, which passes a parameter to the one you want to call.
-
- Profound User
- Posts: 40
- Joined: Tue Jun 28, 2011 4:55 pm
- First Name: Thomson
- Last Name: Mathews
- Company Name: Chesapeake Energy
- Contact:
Re: Passing parameter in ATRIUM to rich display app
In our application, when the user signs on, they get also select the company number on which they have to work, how to call a generic program to set the company number to some data area, when the user sign on into atrium
- 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: Passing parameter in ATRIUM to rich display app
There is currently not a way to do that. We may add the capability to pass parameters to the rich display file applications in a future release.
The only way to do what you need for now would be to call a separate program that would setup the data area, then call the target program, passing any needed parameters.
The only way to do what you need for now would be to call a separate program that would setup the data area, then call the target program, passing any needed parameters.
-
- Profound User
- Posts: 40
- Joined: Tue Jun 28, 2011 4:55 pm
- First Name: Thomson
- Last Name: Mathews
- Company Name: Chesapeake Energy
- Contact:
Re: Passing parameter in ATRIUM to rich display app
I have converted one of our program and it worked perfectly, if i call it using the url (Anonymously) it get the QTMHHTP1 user id, if I call it using it as start program it get correct logged on user id.
Is there a way to provide a url of this web program to external application and make then sign in before the program is called, so that the correct credentials are passed to the program instead of it being call anonymously
Is there a way to provide a url of this web program to external application and make then sign in before the program is called, so that the correct credentials are passed to the program instead of it being call anonymously
- 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: Passing parameter in ATRIUM to rich display app
Of course.
Running the program anonymously is just one option. This option is appropriate only for applications in which you don't intend for the user to sign in using OS/400 profiles. Such as a "public" application, or one where the application manages it's own concept of a "log on".
For converted applications, you'd always want to sign in using OS/400 profiles and should not run these types of programs anonymously.
To run it in a signed in session, you can use the "Maintain Initial Programs" interface in the designer. You can assign an initial program to run per user profile, or globally for all users by using the "default initial program" fields on that dialog.
Then, you launch a session using the "Launch Session" option in the designer. You'll be presented with a sign on panel. After signing in successfully, the initial program will be called.
Does this help?
Running the program anonymously is just one option. This option is appropriate only for applications in which you don't intend for the user to sign in using OS/400 profiles. Such as a "public" application, or one where the application manages it's own concept of a "log on".
For converted applications, you'd always want to sign in using OS/400 profiles and should not run these types of programs anonymously.
To run it in a signed in session, you can use the "Maintain Initial Programs" interface in the designer. You can assign an initial program to run per user profile, or globally for all users by using the "default initial program" fields on that dialog.
Then, you launch a session using the "Launch Session" option in the designer. You'll be presented with a sign on panel. After signing in successfully, the initial program will be called.
Does this help?
-
- Profound User
- Posts: 40
- Joined: Tue Jun 28, 2011 4:55 pm
- First Name: Thomson
- Last Name: Mathews
- Company Name: Chesapeake Energy
- Contact:
Re: Passing parameter in ATRIUM to rich display app
The problem with this approach is you can set only one program for a user.
The scenario I have is out .Net team has a application with some of menu options that need to call some of the programs in our ISERIES using a URL, one url for each option, if its called anonymously its not at all a problem, but i want them to sign in for each option or atleast for the first option they take.
The scenario I have is out .Net team has a application with some of menu options that need to call some of the programs in our ISERIES using a URL, one url for each option, if its called anonymously its not at all a problem, but i want them to sign in for each option or atleast for the first option they take.
- 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: Passing parameter in ATRIUM to rich display app
I think there is a way to achieve what you want.
PUI's built in sign on system supports only 1 starting program per user or 1 globally. It's done this way to provide clear entry points for security.
However, if you want to manage entry points yourself, you can do so by passing parameters into the initial program.
See the attached document for a description on passing parameters into the entry point programs.
So, you could setup 1 global initial program for all users. You'd do this by removing all user records and using the "default initial program" fields.
Then, you can pass a parameter into that initial program that says which program to call. Your program can then manage checking if the given user should be allowed to call the given program or not. Also system authorities will be in play.
Note that you can only pass parameters into a signed in session with http server authentication is used -- versus PUI's sign on panel.
You'd have to use a URL like this for http authentication:
This will pass a 10-character parameter into the initial program containing the text 'yourpgm'.
The user will be prompted to sign into the http server using the browser's pop-up sign on box. This will happen only once per browser session. If they open another tab or window in the same browser session, the browser will preemptively send the stored credentials.
I think this should work?
Note that what I'm describing here will require PUI version 3.0.0 at a minimum. This version brings the capability of using the /auth type URL for http server authentication. For technical reasons, it's not possible to pass those URL parameters "through" the PUI sign on program.
PUI's built in sign on system supports only 1 starting program per user or 1 globally. It's done this way to provide clear entry points for security.
However, if you want to manage entry points yourself, you can do so by passing parameters into the initial program.
See the attached document for a description on passing parameters into the entry point programs.
So, you could setup 1 global initial program for all users. You'd do this by removing all user records and using the "default initial program" fields.
Then, you can pass a parameter into that initial program that says which program to call. Your program can then manage checking if the given user should be allowed to call the given program or not. Also system authorities will be in play.
Note that you can only pass parameters into a signed in session with http server authentication is used -- versus PUI's sign on panel.
You'd have to use a URL like this for http authentication:
Code: Select all
http://yourServer:8080/profoundui/auth/start?p1=yourpgm&l1=10
The user will be prompted to sign into the http server using the browser's pop-up sign on box. This will happen only once per browser session. If they open another tab or window in the same browser session, the browser will preemptively send the stored credentials.
I think this should work?
Note that what I'm describing here will require PUI version 3.0.0 at a minimum. This version brings the capability of using the /auth type URL for http server authentication. For technical reasons, it's not possible to pass those URL parameters "through" the PUI sign on program.
- Attachments
-
- Program Parameter Interface.pdf
- (35.5 KiB) Downloaded 1071 times
-
- Profound User
- Posts: 83
- Joined: Sun Oct 03, 2010 8:45 am
- First Name: Mike
- Last Name: Geldert
- Company Name: Stonriver
- Country: Angola
- Contact:
Re: Passing parameter in ATRIUM to rich display app
I was wondering if the passing of parms to Atrium Rich display file items had been given any more thought?
Who is online
Users browsing this forum: No registered users and 0 guests