Jump to content

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

Recommended Posts

Posted

Hi all,

I have a web page used to update a database. Up to now, I would update the main info of this database through the web page, and only display the Portal Information. I now need to update the portal info as well. When I do that, even if my submit button has an edit value, i get a new portal row added every time I hit submit.

Any idea How I can just get the edit fucntion, and not add a portalrecord every time?

I have 2 text file,one for the portal and one for the main file. They are merged together by the HTML file. My code would look like this:

<form name="editform" action="FMPro" method="post">

<input type="hidden" name="-DB" value="11111.fp5">

<input type="hidden" name="-Format" value="11111.htm">

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

<input type="hidden" name="-Edit" value="">

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

[FMP-Portal]

[field......] fields from the related file

[/FMP-Portal]

-----------this is a new file------------

[fields.........] fields from the main file

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

</form>

Thank you,

David Glaser

Posted

Got the answer,

there is a thread i did not see called adding multiple rows in portal from web.

they talk about editing records as well, and the solution is to add

.[FMP-CurrentPortalRowNumber]" after the portal field you wish to edit.

David

  • 4 weeks later...

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