Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Customized keyboard shortcuts in BIRT
shir
<p>Hi,</p>
<p> </p>
<p>I am using BIRT RCP 4.3.1.</p>
<p> </p>
<p>I have created a multi-page chart type report.</p>
<p> </p>
<p>To give more clarity on what the report is all about and what different functionalists are available in the report, i want to have a help page that pops-up when some key is pressed on the keyboard, e.g. we have `Press F1` for help.</p>
<p> </p>
<p>Some sort of similar feature. Is it possible in BIRT?</p>
<p> </p>
<p>Thanks</p>
<p>Shir</p>
Find more posts tagged with
Comments
shir
<p><<Bumping the thread>></p>
jfranken
<p>Hi Shir,</p>
<p> </p>
<p>Check out the attached report. It has code to capture the keypress event and change the display based on which key was pressed. It works with the standard Web Viewer emitter and the HTML emitter. It does not work with PDF, Excel, etc. outputs.</p>
<p> </p>
<p>The report does not capture pressing the F1 - F12 keys. Intercepting and changing the behavior of those keys is generally considered bad form. However, if you are set on using the F1 key, here is a link that has some possible solutions: <a data-ipb='nomediaparse' href='
http://stackoverflow.com/questions/424407/handling-key-press-events-f1-f12-using-javascript-and-jquery-cross-browser'>http://stackoverflow.com/questions/424407/handling-key-press-events-f1-f12-using-javascript-and-jquery-cross-browser</a></p>
;
<p> </p>
<p>The report shows several options for displaying help. The easiest is just to include a link on the report that the user can click to bring up a help page. For this sample report, the link brings up google but you can replace the link to google with a link to your help page. Another option is to include a button on the report. The button on the sample report does two things when you click it. It displays text on the report body and also opens a popup window to display help. (If your browser blocks popup windows, the popup might not display). It could also be made to open a web page using code like: <span>window</span><span>.</span><span>open</span><span>(</span><span>'url'</span><span>,</span><span> </span><span>'name'</span><span>,</span><span> </span><span>'settings'</span><span>); </span></p>
<p> </p>
<p>The report also shows how to capture key presses. Pressing a key on your keyboard will display the keycode for that key on the report. If you press "h" or "H", the code will display a message on the report and display a popup window with a message.</p>
<p> </p>
<p>Hopefully this will get you started,</p>
<p>Jeff</p>