Jump to content
Server Maintenance This Week. ×

Multiple Records


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

Recommended Posts

Can someone help me figure out why this form doesn't work? I keep getting the error page..

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

<input type="hidden" name="-DB" value="test.fm">

<input type="hidden" name="-Lay" value="info">

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

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

[FMP-RECORD]

<input type="hidden" name="-RecID" value="[FMP-CurrentRecID]">

<input type="checkbox" name="Account" value="Y"> [FMP-FIELD: first] [FMP-FIELD: last]<br>

[/FMP-RECORD]

<input type="submit" value="Submit" name="-Edit">

</form>

And also, when I check the page source, the RecID off by 1 if it's greater than 80...I'm not sure why that is...

Thanks,

Anita

Link to comment
Share on other sites

1. You should change your -error code line temporarily to a comment line:

<!--input type="hidden" name="-error" value="errorhtml-->

The result will be that you will get FMP's error message instead. That should give you a clue as to what is causing the error.

2. If one record is deleted, the recid will be off by one from where the deletion occurred. Remember the recid is a number internal to FMP. It really should not affect what you are trying to accomplish.

3. The impression I get from your use of [fmp-record]...[/fmp-record] is that you are attempting a simultaneous -edit of multiple records.

Peace

Keith M. Davie

Link to comment
Share on other sites

Yes I am trying to edit multiple records at the same time...

This is the error message that I got:

"Your attempt to edit a record failed because of the following:

Unknown error number 102."

Does that mean even FileMaker doesn't know what the error is?

Thanks so much for your help.

Anita

Link to comment
Share on other sites

FMP error message 102 = "Field is missing"

You can locate (and I would recommend you print out) FileMaker error messages in FileMaker Help/Index/error message.

I don't know how successful you will be at editing multiple records, not having explored that aspect.

Peace

Keith M. Davie

Link to comment
Share on other sites

  • 5 weeks later...

I think that in your example, FMP is looking for a field called "-RecID" which of course it cannot find.

Forget trying to edit multiple records with one form.

Link to comment
Share on other sites

This topic is 8667 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.