Personally I prefer to do it this way (because it is entirely in Remedy
so no modifying of any external script you have to maintain) ...
 
Build a display only character field for the URL of the form you want
them to go to and send it thru the LogoutServlet.   The URL would look
something like
 
http://myWebServer/arsys/servlet/LogoutServlet?goto=http://myWebServer/a
rsys/forms/MyArsServer/MyForm
 
Use a Run Process action in an Active Link of PERFORM-ACTION-OPEN-URL
current $zMy URL Field$
 
If you want to bring them back to the same record you can add
?eid=$Request ID$ at the end of the URL
 
Fred

________________________________

From: Action Request System discussion list(ARSList)
[mailto:[EMAIL PROTECTED] On Behalf Of Roney Samuel Varghese
Sent: Tuesday, February 20, 2007 9:17 AM
To: arslist@ARSLIST.ORG
Subject: Re: URL Redirect to Re-Login


** Dear Rolf,
               I believe these are the answers to your questions

1) 1) Log out from form
Use PERFORM-ACTION-EXIT-APP run process action on the logout button of
your form

2) Direct to Login Page 
Edit your logout.jsp page with the javascript provided below. This
script will redirect your logout page after 5 seconds to the page/form
you desire.

<p align="center"><strong><font face="Arial"><big>Your message here<br> 
</big></font></strong></p>

<script>

/*
Count down then redirect script 2
*/

//specify redirect url
var redirecturl="http:localhost/arsys/home"
//specify pause duration before redirection (in seconds) 
var pausefor=5

//DONE EDITING

function postaction(){
if (window.timer){
clearInterval(timer)
clearInterval(timer_2)
}
window.location=redirecturl
}
setTimeout("postaction()",pausefor*1000) 

</script>


<!--[if IE]>

<script language="JavaScript1.2">

<!--

// this script was originally made for aicufworkz 2002.
var switchm=new Array
switchm[0]="ffaa00"; 
switchm[1]="ffff00";
switchm[2]="00ff00";
switchm[3]="0099ff";
switchm[4]="ff0000";
switchm[5]="ff00ff";
// if you want to add more colors go ahead, all the for limits are based
on array length so 
// you shouldn't need to change any of the code, just add more colors.

i=0
j=0
function STROBE()
{
if (j>increment.length-1)
    {
    j=0
    i++
        if (i>switchm.length-1 )
        {
        i=0
        }
    }
document.all.increment[j].filters.blendTrans.apply()
document.all.increment[j].bgColor=switchm[i]
document.all.increment[j].filters.blendTrans.play()
j++
}
timer=setInterval("STROBE()",20) // change the number to effect the
speed of the loadbar.
timer_2=setInterval("REVEAL()",20)
function REVEAL()
    {
    if (document.images[0].complete) 
        {
        clearInterval(timer)
        clearInterval(timer_2)
        document.all.loadbar.style.visibility="hidden";
        document.all.content.style.visibility="visible";
        }
    }
// i don't know how to put comments in the css, but change duration to
effect the speed of the fade effect.



//-->
</script>
<style><!--
body
    {
    font-size:12px;
    font-family:Arial;
    color:000000
    }
#increment
    {
    filter:blendTrans(duration=1)
    }
-->
</style>

<![endif]-->

<!--[if IE]> 

<div id=loadbar 
style=position:absolute;top:expression(document.body.clientHeight/2-100)
;left:expression(document.body.clientWidth/2-50)>
<table cellspacing=0 cellpadding=0 width=100><tr><td 
colspan=10><b>Loading...</b></td></tr><tr>
<script language="JavaScript"><!--
for (k=0;k<10;k++)
{
document.write("<td id=increment width=10 height=20></td>") // you could
set  the length of the loadbar by changing the upper limit of the for
statement. 
}
//--></script>

3) Auto-launch into original form
If you have SSO working and if you give the URL for the original form,
the javascript on the logout.jsp page will automatically open the form
else it will open the login.jsp page.

Hope this helps

Regards,
Roney Samuel Varghese



On 2/2/07, Rolf Cooke < [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> > wrote: 

        What would be the proper command structure to accomplish the
following 
        process:
        1) Log out from form
        2) Direct to Login Page
        3) Auto-launch into original form
        
        The reason for doing this, is that USER would have changed Time
Zone
        preference (written to AR System User Preference form) and the
preference 
        needs to be applied.
        
        Thanks!
        
        Rolf
         
         


_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org ARSlist:"Where the 
Answers Are"

Reply via email to