Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Still problems with delete and inline action

Featured Replies

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]

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)

  • Author

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.

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.