Jeff Turkington
|
| Posted: 06/24/2002, 9:38 AM |
|
Has anyone implemented a return link function similar to the authentication/security method using "ret_link" built into CCS?
What I would like to do is give the user of a form the ability to go off to another, do stuff and then once complete/cancelled, come back to the same point in the original form. I took a look at some of the events, but the cancel action seems to be hard-wired to the return page parameter... without doing major surgery to the generated code.
I'm using ASP/templates with SQL 2000.
Thanks,
Jeff
|
|
|
 |
Tom
|
| Posted: 06/26/2002, 11:33 PM |
|
Jeff,
to return back to the same Grid page, with preserved search reslts and sort order you should pass appropriate paameters to Record form and then back to Grid. To do it set Preserved Parameters to "ALL" (or "GET" or "POST" depending on method used on the search form) for URL field on the Grid form and the similar setting for Preserve Parameters option for the Record form. Note, that you may exlude some patameters from the parameter string by typing their names in Remove Parameter list (separate them with semicolon)
|
|
|
 |
Jeff Turkington
|
| Posted: 06/27/2002, 9:48 AM |
|
Thanks Tom.
I finally figured it out - my solution has two parts:
1) I added a parameter called ret_link with an static expression value of the return page (i.e. edit_case.asp)
2) Then, in the page it calls, I added the following code to the Before_Unload event.
If Not IsEmpty(CCGetParam("ret_link", Empty)) Then
Redirect = CCGetParam("ret_link", Empty) & _
"?Case_ID=" & CCGetParam("Case_ID", Empty)
end if
This isn't that different than the technique CCS uses for authentication redirect. If anyone has a more generic solution that can populate the ret_link expression with the current page & parameters I would be most interested.
Regards,
Jeff
|
|
|
 |
|