Monday, February 16, 2015

Using PeopleCode Modals: openPageletActionPageInModal (PeopleTools 8.53)

This is some useful information from Jim Marion. While typing something in the Chrome JavaScript console, I managed to bring up the function openPageletActionPageInModal. Hmmm, sounds interesting. I drilled to the implementation and saw that you call it like this:
openPageletActionPageInModal("http://your.server.name/psp/ps/EMPLOYEE/HRMS
/c/ROLE_EMPLOYEE.HR_EE_PERS_INFO.GBL?")
What does it do? It converts the /psp/ part of the URL to /psc/ and opens the URL in a modal dialog. For me it worked great as long as I followed two simple rules:
  • Included a question mark in the URL. If the URL has no query string parameters, just include a trailing "?".
  • Used this function in the same datababase/application as the content. In other words, I didn't try to use this technique in Interaction Hub for HRMS content. For that to work, I would need to translate more than just /psp/. I would also have to translate the server name and site name.
Note: It works just fine in a portal/content provider situation if the URL is already a /psc/ URL.
Anyway, interesting, undocumented piece of JavaScript that you may or may not find useful. As always, your mileage may vary.
Note: I was using PeopleTools 8.53 when I found this function.

1 comment:

  1. Casino Review: Borgata Hotel & Casino, Atlantic City
    This Borgata hotel 광주광역 출장마사지 and casino is 천안 출장안마 a favorite among gamblers in Atlantic City, as well as locals and 안성 출장안마 visitors to their 제천 출장마사지 state 우리 바카라 of the art casinos,

    ReplyDelete