Jump to content

Still problems with delete and inline action


This topic is 8457 days old. Please don't post here. Open a new topic instead.

Recommended Posts

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]

Link to comment
Share on other sites

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)

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This topic is 8457 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.