Page 1 of 1
Attention Key in Rich Display
Posted: Thu Oct 29, 2015 11:41 am
by barnettc2
Is there a way to enable support for the attention key in a rich display program? It would need to be available to any program converted to rich display.
Re: Attention Key in Rich Display
Posted: Fri Oct 30, 2015 12:41 pm
by Scott Klement
No, sorry. The attention key is a 5250 feature, but Rich Displays do not use 5250 at all, so cannot use the attention key.
You could, of course, have a button with a 'shortcut key' of Esc or similar, then your program could do whatever it wants when someone hits that key. But, the attention key fature of the OS will not work in a Rich Display.
Re: Attention Key in Rich Display
Posted: Fri Oct 30, 2015 11:24 pm
by Scott Klement
We are looking into the possibility of adding support for an attention key behavior in a future release of Profound UI.
Re: Attention Key in Rich Display
Posted: Wed Jan 13, 2016 8:12 am
by rasaro
Hi Scott, we just rolled out Profound UI to our users and they also are used to having the 5250 attention key "Esc Key" available with additional options that they can choose and have requested it in this product. How would I set that up creating a global button with a 'short cut key' of ESC. Thanks. Rick
Re: Attention Key in Rich Display
Posted: Thu Jan 14, 2016 1:30 pm
by Scott Klement
We added this API that, when called, will run whatever program is defined as your attention program:
http://www.profoundlogic.com/docs/pages ... d=25854307
So to make this work, you could add a button to your rich display file, and the button's "onclick" event could call the API to run your attention program.
I can't thnnk of a way to add a button "globally", but you could write some JavaScript in the pui.onload event so that it would run on every Rich Display.
http://www.profoundlogic.com/docs/displ ... pui.onload
Re: Attention Key in Rich Display
Posted: Thu Jan 14, 2016 2:14 pm
by rasaro
Scott, I have tries several things (button, hyperlink, image) using the API pui.runAttnProgram(); and the on click event, but this is the message I am getting:
Onclick Error;
Object doesn't support property or method 'runAttnProgram'
Re: Attention Key in Rich Display
Posted: Thu Jan 14, 2016 4:05 pm
by Scott Klement
Rick, you'll need to be running Profound UI 5.2.0 to use the pui.runAttnProgram() API. Could that be the problem?
Re: Attention Key in Rich Display
Posted: Fri Jan 15, 2016 7:44 am
by rasaro
Ok, I see that the pui.runAttnProgram() API came out in 5.2.0. I will upgrade and try it again. Thanks Scott.