Invoke #PeopleSoft search from a keyboard combination. Find out how! Bring the Mac spotlight-like experience into PeopleSoft through a few lines of properly placed JavaScript.
JavaScript for this solution:
document.addEventListener('keydown', function(e) {
if (e.ctrlKey && (e.key === ' ')) {
var el;
if (top === self) { /* assume fluid, although might be classic in /psc/ */
el = document.getElementById("PT_GSEARCH_BTN");
} else {
el = top.document.getElementById("pthdr2suggestionsearch");
}
if(!!el) {
/* If top === self and isn't Fluid, then probably /psc/ classic,
and therefore search not found. Search is just part of the
header. */
el.click();
}
}
});
/* Add the following line to PT_SAVEWARNINGSCRIPT
%include(JSM_SPOTLIGHT_JS);
*/
Are you ready to learn more? Check out our PeopleTools course offerings at https://www.jsmpros.com/courses/.
#PeopleSoft #PeopleTools Sound Bytes are short, five to fifteen-minute educational tidbits designed to describe a #PeopleTools feature. Do you have a topic you would like us to discuss? Tell us about it at https://soundbytes.jsmpros.com/.
Jim Marion is an #OracleAce ♠, author of several PeopleTools books, blogger, public speaker, and PeopleTools instructor. Connect with Jim on LinkedIn at / jimjmarion .