Kireihana Posted November 19, 2001 Posted November 19, 2001 I have an html page of fields and their values and also a portal. The portal is displaying its portals properly, but after an update has been made, the portal will not update correctly. Instead of updating the record within the portal with the changes, it goes and create a completely new record in the portal with the changes. If anybody has any clues/tips/hints, it would be greatly appreciated. Thank you.
Kireihana Posted November 19, 2001 Author Posted November 19, 2001 Well here's the code...thx <table width=660 border=0> <tr bgcolor=dddddd> <td> <table width="100%"cellspacing=1 border=0> <tr><td><b>Requestor:</b></td><td colspan=3 bgcolor=white>First: <INPUT TYPE="text" SIZE="10" NAME="requestors_first" VALUE="[FMP-field: requestors_first]"></td> <td colspan=4 bgcolor=white>Last: <INPUT TYPE="text" SIZE="10" NAME="requestors_last" VALUE="[FMP-field: requestors_last]"></td></tr> <tr><td><b>Rationale:</b></td><td colspan=7 bgcolor=white><TEXTAREA name="rationale" COLS="40" ROWS="3">[FMP-field: rationale]</TEXTAREA></td></tr> <tr><td><b>Comments:</b></td><td colspan=7 bgcolor=white><TEXTAREA name="comments" COLS="40" ROWS="3">[FMP-field: comments]</TEXTAREA></td></tr> <tr><td height=40 colspan=8 valign=bottom><b>Create Accounts for:</b></td></tr> <tr bgcolor=eeeeee> <td> </td> <td><b>First Name</b></td> <td><b>Last Name</b></td> <td><b>Payroll</b></td> <td><b>Org Code</b></td> <td><b>Folder Name</b></td> <td><b>Exist/New</b></td> <td><b>Access Type</b></td> </tr> [FMP-Portal: arf_link] <tr bgcolor=white> <td>[FMP-CurrentPortalRowNumber]</td> <td><INPUT TYPE="text" NAME="arf_link::first_name" SIZE="10" VALUE="[FMP-Field: arf_link::first_name]"></td> <td><INPUT TYPE="text" NAME="arf_link::last_name" SIZE="10" VALUE="[FMP-Field: arf_link::last_name]"></td> <td><INPUT TYPE="text" NAME="arf_link: ayroll" SIZE="8" VALUE="[FMP-Field: arf_link: ayroll]"></td> <td><INPUT TYPE="text" NAME="arf_link: rg_code" SIZE="6" VALUE="[FMP-Field: arf_link: rg_code]"></td> <td><INPUT TYPE="text" NAME="arf_link::folder_name" SIZE="14" VALUE="[FMP-Field: arf_link::folder_name]"></td> <td><select name="arf_link::exist_new">[FMP-Option: arf_link::exist_new]</select></td> <td><select name="arf_link::access_type">[FMP-Option: arf_link::access_type]</select></td> </tr> [/FMP-Portal] </table> </td> </tr> </table>
Kireihana Posted November 19, 2001 Author Posted November 19, 2001 Here's more of a complete version... code: <FORM ACTION="FMPro" METHOD="post"> <INPUT TYPE="hidden" NAME="-DB" VALUE="account_req_forms.fp5"> <INPUT TYPE="hidden" NAME="-recid" VALUE="[FMP-currentrecid]"> <INPUT TYPE="hidden" NAME="-lay" VALUE="Admin"> <INPUT TYPE="hidden" NAME="-format" VALUE="edit_reply.html"> <table border=0 bgcolor=dddddd cellspacing=1> <tr bgcolor=eeeeee><td><b>ARF #:</b></td><td>[FMP-field: arf]</td></tr> <tr bgcolor=eeeeee><td><b>Request Date:</b></td><td>[FMP-field: request_date]</td></tr> <tr bgcolor=eeeeee><td><b>Status:</b></td><td>[FMP-field: status]</td></tr> </table> <table width=660 border=0> <tr bgcolor=dddddd> <td> <table width="100%"cellspacing=1 border=0> <tr><td><b>Requestor:</b></td><td colspan=3 bgcolor=white>First: <INPUT TYPE="text" SIZE="10" NAME="requestors_first" VALUE="[FMP-field: requestors_first]"></td> <td colspan=4 bgcolor=white>Last: <INPUT TYPE="text" SIZE="10" NAME="requestors_last" VALUE="[FMP-field: requestors_last]"></td></tr> <tr><td><b>Rationale:</b></td><td colspan=7 bgcolor=white><TEXTAREA name="rationale" COLS="40" ROWS="3">[FMP-field: rationale]</TEXTAREA></td></tr> <tr><td><b>Comments:</b></td><td colspan=7 bgcolor=white><TEXTAREA name="comments" COLS="40" ROWS="3">[FMP-field: comments]</TEXTAREA></td></tr> <tr><td height=40 colspan=8 valign=bottom><b>Create Accounts for:</b></td></tr> <tr bgcolor=eeeeee> <td> </td> <td><b>First Name</b></td> <td><b>Last Name</b></td> <td><b>Payroll</b></td> <td><b>Org Code</b></td> <td><b>Folder Name</b></td> <td><b>Exist/New</b></td> <td><b>Access Type</b></td> </tr> [FMP-Portal: arf_link] <tr bgcolor=white> <td>[FMP-CurrentPortalRowNumber]</td> <td><INPUT TYPE="text" NAME="arf_link::first_name" SIZE="10" VALUE="[FMP-Field: arf_link::first_name]"></td> <td><INPUT TYPE="text" NAME="arf_link::last_name" SIZE="10" VALUE="[FMP-Field: arf_link::last_name]"></td> <td><INPUT TYPE="text" NAME="arf_link: ayroll" SIZE="8" VALUE="[FMP-Field: arf_link: ayroll]"></td> <td><INPUT TYPE="text" NAME="arf_link: rg_code" SIZE="6" VALUE="[FMP-Field: arf_link: rg_code]"></td> <td><INPUT TYPE="text" NAME="arf_link::folder_name" SIZE="14" VALUE="[FMP-Field: arf_link::folder_name]"></td> <td><select name="arf_link::exist_new">[FMP-Option: arf_link::exist_new]</select></td> <td><select name="arf_link::access_type">[FMP-Option: arf_link::access_type]</select></td> </tr> [/FMP-Portal] </table> </td> </tr> </table> <INPUT TYPE="submit" NAME="-edit" VALUE="Submit Changes"> </FORM> </BODY> </HTML> [ November 19, 2001: Message edited by: Vaughan ]
Anatoli Posted November 20, 2001 Posted November 20, 2001 Please use [ code ] [ /code ] and insert code between that flags. Remove the spaces in above.
Vaughan Posted November 20, 2001 Posted November 20, 2001 I took the liberty of editing the post and adding the CODE tags as Anatoli suggested. One of the privileges of being moderator. ;-)
MeltDown Posted November 20, 2001 Posted November 20, 2001 In FMP 5.0 Unlimited, you need to specify the portal row you are updating.... arf_link::last_name.0 is a new record, and arf_link::last_name.1 is portal row number 1. You can use [FMP-CurrentPortalRowNumber] to do this for you. Try using Name="arf_link::last_name[FMP-CurrentPortalRowNumber" Hope this helps! BTW - how is FMP 5.5 Unlimited to work with - Any surprises?!?
Anatoli Posted November 20, 2001 Posted November 20, 2001 If you post the code, someone can find something on it.
Kireihana Posted November 20, 2001 Author Posted November 20, 2001 Thanks Meltdown for the advice. It worked. As for any surprises? Nope just this one!
Recommended Posts
This topic is 8473 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 accountSign in
Already have an account? Sign in here.
Sign In Now