Sat 19 Nov 2005
Yet another thing I learned this week. It is possible to open a component directly, bypassing the search page — of course after logging in — from a URL link. In the URL, just add the search key field values in the query string. You’ll have to specify the exact search key fieldname and value pairs: ?EMPLID=AA01234&EFFSEQ=1
This could be useful when sending notifications to users via email, and you want to provide a link directly to the specific page and data.
December 8th, 2005 at 7:53 am
Wow, cool! I’ll definitely try that. Do you ever tire of discovering new things with PeopleSoft? Hopefully not! If you do, who will I ask then??? LOL! =P
December 8th, 2005 at 10:40 pm
Is there a way to prompt the user to log in upon clicking on the URL? Because if user has not signed in yet, it returns an error. Also upon successful display of the page, only that page is evident - the main menu is not available. Do you know how to make the main menu still available with that page displayed? Or any links or button to let the user go to the home page? Thanks. =)
December 9th, 2005 at 12:27 am
Not sure about versions 8.2x and below, but on 8.4x, the login page will be displayed if user is not yet logged in.
In 8.4x, use the built-in PeopleCode functions for generating the component’s URL. If you want the navigation frame to display, use GenerateComponentPortalURL(); if without the navigation, use GenerateComponentContentURL().
Here’s an example:
&LinkToComponent = GenerateComponentPortalURL(%Portal, %Node, MenuName.MYMENU, “GBL”, Component.MYCOMPONENT, “”, “”);
&LinkToComponent = &LinkToComponent | EncodeURL(”?EMPLID=” | &emplid | “&EFFSEQ=” | &effseq);
In the above example EncodeURL is used make sure the URL is encoded properly. But you really only need this if any of your keys can contain strings that needs to be encoded, such as a space.
December 9th, 2005 at 11:23 am
Sadly, we’re using v8.2. =( Anyway, I’ll just use this info when I implement in v8.4. Thanks! =)
July 25th, 2006 at 4:04 am
Thanks - this was a very helpful tip!