[FX.php List] Problem with FMEdit
kushal khatri
kushal.khatri at gmail.com
Sat Jun 7 19:43:45 MDT 2008
Thanks a lot Alex. I got it. Thanks for your help!
Regards,
Kushal
On Sat, Jun 7, 2008 at 6:35 PM, Alex Gates <alex at gandrpublishing.com> wrote:
> Hi Kushal -
>
> Every record has an automatic rec id. This is different than your primary
> key. You can see this by making a calc field Get(recid) in filemaker.
>
> You must use -recid in your edit.
>
> Check the documentation - I think it shows an example of how to get the rec
> id using the explode function after a find. Or, of course, you can see this
> using a calc field like I mentioned above.
>
> Good luck!
>
> Alex
>
>
> On Jun 7, 2008, at 8:07 PM, "kushal khatri" <kushal.khatri at gmail.com>
> wrote:
>
> Hi. I've been working with Filemaker/FX.PHP for quite a few months now.
>> I am using FMEdit function like this in my code :
>>
>> $edit -> AddDBParam("contact_key",$contact_key);
>> $edit -> AddDBParam("firstname",$firstname);
>> $edit_res = $edit -> FMEdit();
>>
>> where "contact_key" is the primary key in the database. This code shows
>> error 958. I have seen some snippets online. They use
>> "-recid" as the field to find the record to be edited. Does that mean i
>> should have a field named -recid in my database?
>> If i write the code as :
>>
>> $edit -> AddDBParam("-recid",$contact_key);
>> $edit -> AddDBParam("firstname",$firstname);
>> $edit_res = $edit -> FMEdit();
>>
>> It gives error 101 i.e. field not present. Please tell me how to use
>> FMEdit. The way it is shown in tutorials does not work for me.
>>
>> Thanks,
>> Kushal
>>
>>
>> _______________________________________________
>> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20080607/f298bbf1/attachment.html
More information about the FX.php_List
mailing list