marc93 Posted May 18, 2001 Posted May 18, 2001 I want to make a page wich shows some records and be able to update and delete them. I want the response page (-format) the same page again. For one reason or the other the page does not show the updated result from the database with the delete action. It does show the updated result with the update action. And when i push the delete button the record is deleted in the database and the search from the inline has been performed. What is happening here? I already tried the "expires" meta tag with no luck. This is my code: [FMP-InlineAction:-db=test.fp5,-lay=web,-sortfield=Name,-findall] [FMP-Record] <form method="POST" action="FMPro"> <input type="hidden" name="-db" value="test.fp5"> <input type="hidden" name="-format" value="test.html"> <input type="hidden" name="-lay" value="WEB"> <input type="hidden" name="-recid" value="[FMP-CurrentRecid]"> <input type="text" name="FirstName" value="[FMP-field:FirstName]"> <input type="text" name="Name" value="[FMP-field:Name]"> <input type="submit" name="-edit" value="Update"> </form> <form method="POST" action="FMPro"> <input type="hidden" name="-db" value="test.fp5"> <input type="hidden" name="-format" value="test.html"> <input type="hidden" name="-lay" value="WEB"> <input type="hidden" name="-recid" value="[FMP-CurrentRecid]"> <input type="submit" name="-delete" value="Delete" onClick="return confirm('Really delete this record?')"> </form> [/FMP-Record] [/FMP-InlineAction]
flexistentialism Posted May 18, 2001 Posted May 18, 2001 Just an idea Web Companion holds the values from a deleted record so you can show confirmation in a -format file. What happens if you click refresh on your browser? Try it with two pages where page 1 sends you to page 2 and then back again to view the results. I may be barking up the wrong tree but I can't see anything wrong with your code (it wouldn't work at all if there was)
marc93 Posted May 18, 2001 Author Posted May 18, 2001 What happens if I refresh the page is that I get an error saying the record can't be found (the deleted one I suppose). I started out with the two pages still using FM4 but with the new inline action I thought this step could be skipped.
Recommended Posts
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