mattw Posted April 25, 2001 Posted April 25, 2001 Hi, It may look like you have seen this before, that's because you have. I pasted this in from another topic. I didn't understand much of the information from the replies. Hense the name wrukie...rookie (I am new to this) I want to do the following: -SEARCH SCREEN Let the user specify search criteria. Perform the search. -SEARCH RESULTS Display a summary list of returned records. Let the use click on a record id to edit the details -UPDATE SCREEN Let them update the details. -back to the SEARCH RESULTS And finally, (the part I can't work out how to do) - Perform the original search again to show the updated results. Basically I want to automate the manual way af performing this, which would be Back, Back, Reload from the browser. I have tried using history.go(-2), which brings me back to the results page, but then I need the results page to reload in order to show the changes made in the details page. Thanks for any replies in advance.
Vaughan Posted April 30, 2001 Posted April 30, 2001 After the update page, specify an html format file that says "update successful" then redirect them back to the search results page by re-submitting the search criteria. This may require the use of tokens.
Newbies ddufort Posted May 4, 2001 Newbies Posted May 4, 2001 quote: Originally posted by wrukie: Hi, It may look like you have seen this before, that's because you have. I pasted this in from another topic. I didn't understand much of the information from the replies. Hense the name wrukie...rookie (I am new to this) I want to do the following: -SEARCH SCREEN Let the user specify search criteria. Perform the search. -SEARCH RESULTS Display a summary list of returned records. Let the use click on a record id to edit the details -UPDATE SCREEN Let them update the details. -back to the SEARCH RESULTS And finally, (the part I can't work out how to do) - Perform the original search again to show the updated results. Basically I want to automate the manual way af performing this, which would be Back, Back, Reload from the browser. I have tried using history.go(-2), which brings me back to the results page, but then I need the results page to reload in order to show the changes made in the details page. Thanks for any replies in advance.
Newbies ddufort Posted May 4, 2001 Newbies Posted May 4, 2001 Sorry about the previous messege, this is my first post to the forum. I just got done attempting to solve the same problem. Listed below are the code snipits from what I did. This solution came from my reading sevral of the answers to previous questions on this topic and a lot of trial and error. This is from the page the display's the Search Results: <FORM ACTION="FMPro?" METHOD="POST" Name="Go2Record" ID="Go2Record"> <INPUT TYPE="hidden" NAME="-DB" VALUE="[FMP-CurrentDatabase]"> <INPUT TYPE="hidden" NAME="-Lay" VALUE="Web"> <INPUT TYPE="hidden" NAME="-error" VALUE="Error_Reply.htm"> <INPUT TYPE="hidden" NAME="-Format" VALUE="../[FMP-CurrentToken: 0]/Edit_Form.htm"> <!-- Bring along value of currentdatabase --> <INPUT TYPE="hidden" NAME="-Token.0" VALUE="[FMP-CurrentToken: 0]"> <!-- Bring along value of the current link. This is used to retrive this same search after editing the record. --> <INPUT TYPE="hidden" NAME="-Token.1" VALUE="[FMP-Link: k]"> <INPUT TYPE="hidden" NAME="-max" ID="-max" VALUE="1"> <INPUT TYPE="hidden" NAME="-skip" ID="-skip" VALUE="0"> <INPUT TYPE="hidden" NAME="-RecID" VALUE="[FMP-CurrentRecID]"> <INPUT TYPE="Submit" NAME="-Find" VALUE="[FMP-FIELD: Issue_Num]"> </FORM> This is from the Edit page. This works but it does not seem to be doing a POST. The other issue I'm having is that I'd like to put a Previous, Next on the Edit form but it won't work when using tokens to store links. If anybody has tips I'd be glad to try them. <FORM ACTION="[FMP-CurrentToken: 1]" METHOD="POST" Name="ReturnToSearch"> <INPUT TYPE="button" VALUE="Return to Search Results" onclick="javascript:submitReturnToSearch()"> </FORM>
Recommended Posts
This topic is 8673 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now