How Can We Help?
Issue
There is a travel request report that runs successfully, but on clicking to view the second page, it logs the user out of XMPro.
In Report Designer, the second page displays fine.
The report itself is being displayed in a Reference Label – the activityA specific step in a process. It will be the user interface for that step (web form or a screen), for example, the Leave Application (screen interface or web form) will be the first Activity in the Leave Requisition process. The Leave Application Authorization will be the second step or Activity in the Leave Requisition process. One Process can have multiple activities. prior to this provides the user with a browse page to select that they want to print.
The version is v6.0.3 and the browser is IE10.
The managed code on the activity that displays the report is:
public void P_50TravelReqReport_OnLoad( { string t_id = activity.GetControlValue("P_3030ID"); activity.SetControlValue("P_5010RptView", string.Format("<iframe src='./Reports/reportviewer.aspx?p1={0}&reportName={1}' width='98%' height='1150' frameborder='no'></iframe>", t_id, "rpt_Travel_Req")); }
Resolution
There may be an entry in the web.config file that causes the user to be redirected to the login screen when an error occurs on the Report Viewer. Under the <devExpress> section there maybe be the following:
<errors callbackErrorRedirectUrl="~/Account/Logout.aspx" />
Removing the value so that it looks like this:
<errors callbackErrorRedirectUrl="" />
You could help you diagnose the problem as you should now receive an error message rather than be logged out.
Just take care when modifying web.config as any incorrect syntax in the file will bring the site down.
Comments are closed.