on 06-05-2014 11:45 PM
Hi Experts,
I am trying to redirect the users to a different portal component after they are successfully authenticated, as I need the details of the authenticated user, especially the R3Name that was mapped to. I have done the below modifications in umLogonPage.jsp of the logon application:
onaction="<%=inPortal?"":logonBean.getLogonURL(proxy, null)%>";
2. Deleted the onSubmit of the form:
?"onSubmit=\"javascript:addTenantPrefix();\"":""
3. Changed the type of logon button to button from submit.
4. Then, I have added the below script in the umLogonPage.jsp which is being called onclick of the logon button:
function payrollPnumCheck()
{
addTenantPrefix();
var logonAction = "<%=inPortal?"":logonBean.getLogonURL(proxy, null)%>";
<%
boolean locked = PayrollStatus.isPayrollProcessing();
if((locked)){
%>
alert(location.pathname);
window.location.assign("http://zabrysvsapzhd:50000/irj/servlet/prt/portal/prtroot/com.dd.payrollProcessing.systemLocked");
<%
}else{%>
document.logonForm.action=logonAction;
document.logonForm.submit();
<%}%>
}
But, the portal is not being redirected after the authentication.
Please let me know what am I doing wrong here. I am quite new to js and jsp.
Thank you,
Sai
What kind of Portal Component are we talking about, we can have iViews assigned right? Or even URL iVIews point to the Application.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
How are these Portal components deployed in the portal, NWDI activites or EAR/SDAs?
IN either way you should be able to get a link to the landing page (might be index.html or jsp) e.g. http://<SAP>.<domain>:5xx000/<Application-Deployed-EAR>/root/landingIndex.html (in case of EAR SDA deployments) or http://<SAP>.<domain>:5xx000/<SID_TrackID_D><DC>/landingIndex.html
These URLs can be wrapped in a URL iVIew and then assigned to a Page with no padding and borders so as to appear as a like any other normal webpage.
If you don't change he page display settings you'll get the Framework headings, title and all SAP standard components and would look weird if the application is not a dynpro one.
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.