Jump 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.

Cannot Edit or Delete Records

Featured Replies

  • Newbies

Hi Everyone! Im new to all this and trying to get a simple database going where people will be able to edit and delete information, ive pretty much followed the book and the code is exactly what its telling me to put, but when i try and do any editing to a record or deleting of a record i get an error! ive looked through the discussions and did find one message that said you needed -recid that might be what im missing, but im not sure, heres the code, and any help would be greatly appreciated! thanks in advance

This is what i have for edit...

<html>

<head>

<title>Edit Article Request</title>

</head>

<body>

<form action="FMPro" method="POST">

<input type="hidden" name="-db" value="articlerequest">

<input type="hidden" name="-lay" value="webarticle">

<input type="hidden" name="-format" value="editresp.html">

<input type="hidden" name="-error" value="error.html">

<p>Please edit your information</p>

<p></p>

<p>First Name: <Input type="text" Name="FirstName" Value="[FMP-Field:FirstName]" Size=20></p>

<p>Last Name: <Input type="text" Name="LastName" Value="[FMP-Field:LastName]" Size=20></p>

<p><input type="submit" Name="-edit" Value="Submit"></p>

</form>

</body>

</html>

Thanks again for any help!!!

Joe

i think when you are editing or deleting a record you need to have a record ID in there.. try putting this hidden field in there with all the other hidden fields.

<INPUT TYPE="hidden" NAME="-recid" VALUE="[FMP-currentrecid]">

JoeF, you should be using your CDML Reference database. Refer to "Edit Record" in that database. You will find a list of "Other tags that are required".

SIMPLIFY ...

Keith

  • Author
  • Newbies

Thanks alot Bman!!! It works now! And Keith..."CDML Reference database" can you point me to one, or is it sitting under my nose? all i have is a filemaker pro visual quickstart book and thats where i was using the code that didnt work. Thanks alot for everything though!!!!

Joe

well, Stuffit Expander will work too if your on a mac. The joys of a mac, much more versitale. . .

jeremy

A tip for the future: go to FMP Help aand print out the section for the Status(CurrentError) function. This will list all/most of the error codes, so you'll be able to look them up. Generally they are pretty clear aand often quickly lead to the solution.

Similarly, include the error code in yourr post to the forum. I'm surprrised that nobody has asked you what the error was! Without that information, everything is guesswork.

Create an account or sign in to comment

Important Information

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

Account

Navigation

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.