kevind
Posts: 251
|
| Posted: 01/13/2005, 2:05 PM |
|
I have several points where I will link to a common page to edit a row. I need to return to the calling page which can change - therefore I can't set the Return Page property of the Record.
Is there a way to determine the calling page and then return to it with the parameters of the URL intact.
thanks,
Kevin
_________________
thanks
Kevin
======================
CCS 3.2.x / ASP / MS Access /mySQL / PHP / jQuery / jQuery UI / jQuery Mobile
|
 |
 |
peterr
Posts: 5971
|
| Posted: 01/14/2005, 12:26 AM |
|
Not sure how, but I would try:
1. Edit the original link and add a Link Parameter with an expression. Open the Href Source property, click [+], then add: paremeter name = page_name, Source Type = Expression, Parameter Source = "pagename"
2. Then experiment with the Redirect property after a record is edited (After Update): http://docs.codecharge.com/studio/html/ProgrammingTechn...irectUsers.html
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
 |
 |
RBravo
|
| Posted: 02/13/2005, 6:50 PM |
|
Kevin, try this:
1. On the calling page link , under the HRefSource parameters (where you specify the page to call) add a parameter called "ret_link" and give it the value FileName (it is a variable so don't put quotes).
2. On the record form, add code to event On Validate, and put the following code:
'Redirect to parent page
If Not IsEmpty(CCGetParam("ret_link", Empty)) Then _
Redirect = CCGetParam("ret_link", Empty)& "?" & _
CCRemoveParam(Request.ServerVariables("QUERY_STRING"), "ccsForm")
Hope this works (it works for me)
Rene
|
|
|
 |
kevind
Posts: 251
|
| Posted: 02/22/2005, 8:24 AM |
|
thanks - i'll try that next time i work on that project
kd
_________________
thanks
Kevin
======================
CCS 3.2.x / ASP / MS Access /mySQL / PHP / jQuery / jQuery UI / jQuery Mobile
|
 |
 |
|