Attention Key in Rich Display

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
barnettc2
New User
Posts: 3
Joined: Mon Feb 17, 2014 4:18 pm
First Name: Chris
Last Name: Barnett
Company Name: Crossville Inc.
Contact:

Attention Key in Rich Display

Post 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.
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: Attention Key in Rich Display

Post 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.
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: Attention Key in Rich Display

Post by Scott Klement »

We are looking into the possibility of adding support for an attention key behavior in a future release of Profound UI.
rasaro
Profound User
Posts: 60
Joined: Tue Mar 17, 2015 12:48 pm
First Name: Rick
Last Name: Asaro
Company Name: MISD
Country: United States
Contact:

Re: Attention Key in Rich Display

Post 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
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: Attention Key in Rich Display

Post 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
rasaro
Profound User
Posts: 60
Joined: Tue Mar 17, 2015 12:48 pm
First Name: Rick
Last Name: Asaro
Company Name: MISD
Country: United States
Contact:

Re: Attention Key in Rich Display

Post 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'
Attachments
menu screens.json
(45.01 KiB) Downloaded 65 times
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: Attention Key in Rich Display

Post 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?
rasaro
Profound User
Posts: 60
Joined: Tue Mar 17, 2015 12:48 pm
First Name: Rick
Last Name: Asaro
Company Name: MISD
Country: United States
Contact:

Re: Attention Key in Rich Display

Post 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.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests