Hello,
I am having a hard time with redirecting to a summary screen in asp. The redirect is being called from a list page under User My CRM and it uses the custom jump with the asp page name (redirect.asp?) and the case_caseid,case_workflowid as the id fields passing to the redirect.asp page.
This redirects to a asp page which calls up an entryblock for a new screen required for a different workflow within cases.
I have built the redirect URL using different methods found on here but the redirect page doesn't want to behave at all.
My custom screen asp page works as a custom jump too except, it requires: Key8=case_caseid, Key0=8 (case) and to strip out: Key0=4 to show up in the correct workflow and display the case tabs at the top of the screen.
Can anyone see where the code would be failing? The error I am seeing isn't helpful as it is a standard system error advising that asp pages aren't able to display in IIS7 - which tells me the asp format is incorrect as all other asp pages are working with no errors.
redirect.asp as follows:
<code>
<!-- #include file = "../sagecrm.js"-->
<%
var strKeyID = "case_caseid";
var Id = new String(Request.Querystring(strKeyID));
var intRecordId = 0;
if (Id.indexOf(",") > 0) {
var Idarr = Id.split(",");
intRecordId = Idarr[0];
}
else if (Id != "") {
intRecordId = Id;
}
var strSID = new String(Request.QueryString("SID"));
var intDominateKey = 8; //case is the new target context
var fstring = Request.QueryString("F");
var intKey8 = intRecordId;
var intKey50 = Request.QueryString("case_workflowid"); //unique id of the instance (workflowid)
var intUse = Request.QueryString("Key4");
var strFileName = "complaints/complaintssummary.asp"; //target file
var strTabName = "Case"; //tabgroup name to be used.
var strTarget = "/" + sInstallName + "/eware.dll/Do?SID=" + strSID + "&F=" + fstring + "&J=" + strFileName + "&CLk=T&Mode=1&Key-1=4&Key4=" + intUse + "&Key8=" + intRecordId + "&Case_CaseId=" + intRecordId + "&Key50=" + intKey50 + "&T=" + strTabName;
Response.Redirect(strTarget);
%>
</code>
Thanks in advance for any insights.
Regards,
Penny