I'm not sure I understand. You said that you're running Rich Displays from Atrium, and that means you have to hunt around. But, you also refer to it as a "Genie Job Name/User/Number" and say "launch another Genie session". If you are launching a Rich Display from Atrium, you aren't using Genie. Unless you mean that you are launching a Genie macro from Atrium, which in turn runs a Rich Display in the 5250 job?
But if you are indeed using Genie macros to launch Rich Displays inside 5250 jobs, then the jobs are regular 5250 jobs... so shouldn't be that hard to figure out, right? Unless there are just so many of them that it's hard to figure which is which, I guess.
Well, anyway, I may have a solution for you:
First, if you plan to launch this new session from within your Rich Display or Genie session (if that's where the shortcut key will be set up) then the job info is actually already there in JavaScript variables. The JS code thats attached to your shortcut key can do something like this:
Code: Select all
var url = "/profoundui/auth/genie?skin=YOUR-SKIN¯o=YOURMACRO&var1=name&value1=" + encodeURIComponent(pui.appJob.name) + "&var2=user&value2=" + encodeURIComponent(pui.appJob.user) + "&var3=number&value3=" + encodeURIComponent(pui.appJob.number)
window.open(url);
Obviously, the skin name, macro name, and variable names will depend on how you named things on your end, but hopefully you get the idea. the appJob variables already contain the job information.
Second, if you're not planning to call it from within the session, but rather want to call it from somewhere else... there are User Defined Table Functions (UDTFs) in Profound UI that have all of the job information. They are a little bit slow because they have to read inside each job to get the right information and cross-reference it, but if you don't mind waiting a few seconds, they'll do the job.
I'm not exactly sure how you'd go about picking the right job info, though... But if you look through the data, maybe you can figure it out?
Code: Select all
select * from table(PUI_GetInstJobs('PROFOUNDUI')) as x where PuiJobType='GENIEAPP' or PuiJobType='RDFAPP'
GENIEAPP and RDFAPP are the Genie Application and Rich Display Application jobs, respectively. (There are other jobs used to run things like controller code, SQL code, etc, that you probably aren't interested in.)
Third, if its important to look up the job info from the session id, we provide an API called pui_RtvJobInfo() that can be called from any ILE program that will retrieve the job info from the session id. This is a regular ILE subprocedure that you can call from any ILE language. It is documented here:
http://www.profoundlogic.com/docs/displ ... ation+APIs
Hopefully one of those three options will help you?