[FX.php List] writing data to table

Gjermund Gusland Thorsen ggt667 at gmail.com
Wed Apr 15 16:11:08 MDT 2009


This can also be done using add() and use unique validation on a field.

ggt667

2009/4/15 John Funk <jfunk at criticalsolution.com>:
> Thanks Dale, This is what I was planning on. I just though there might be a
> function to edit/add no mater what.
> Thanks again.
>
>
> On 4/15/09 11:04 AM, "Dale Bengston" <dbengston at tds.net> wrote:
>
> Hi John,
>
> I do this by storing record ids in hidden form elements corresponding to
> input collected from the user. If there's a value for record id, it's an
> "edit." If the value is absent, it's an "add."
>
> Dale
>
> On Apr 15, 2009, at 10:16 AM, John Funk wrote:
>
> I know:
>  FMNew() creates records
>  FMEdit() modifies
>  –recid is required to edit data
>
>  Is there a simple way to write data and if there is not a record make a new
> one?
>  In other words to emulate FileMaker’s ability to edit/create records
> through a defined relationship? And not duplicate any?
>  I am trying not to have to check each element of an array to see if there
> is a record in FM.
>  So if there is a record, edit, if not created it with the same function.
>
>  John Funk
>
>   _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list
>
>
> ________________________________
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list
>
>
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list
>
>


More information about the FX.php_List mailing list