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