April 17, 200124 yr 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
April 17, 200124 yr 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]">
April 17, 200124 yr 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
April 17, 200124 yr 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
April 18, 200124 yr Originally posted by tomrt, rockville md., and posted many times since. FileMaker's CDML Reference (for v5) is freely available at http://www.filemaker.com/downloads/hqx/cdml_web_tools.zip YOU NEED ZIPIT TO UNSTUFF. SIMPLIFY ... Keith
April 18, 200124 yr well, Stuffit Expander will work too if your on a mac. The joys of a mac, much more versitale. . . jeremy
April 20, 200124 yr 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